| |
| Seeks a Sales Delivery Detail line by its customer number. |
| |
 |
VARIANT_BOOL SeekByCstNum ( enum eSeekMode eSeekMode, LONG lCstNum, LONG lCstSubNum, BSTR bsBook, LONG lDocNum, SHORT sLineNum ) |
|
| |
| Key information |  | This method uses key number 4 (See SwapKey). |  | This is a unique key. |
| | | | Key segment information | | | | | Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | lCstNum | | [in] The customer number of the Sales Delivery of which you want to seek a detail line. | | lCstSubNum | | [in] The customer subnumber of the Sales Delivery of which you want to seek a detail line. | | bsBook | | [in] The book code of the Sales Delivery of which you want to seek a detail line. | | lDocNum | | [in] The document number of the Sales Delivery of which you want to seek a detail line. | | sLineNum | | [in] The line number of the Sales Delivery Detail line you want to seek. |
| |
Remarks
 |
 |
This number is a 0-based index, i.e. it starts from 0. Therefore the value of this parameter is 1 less than the numbers shown in the Venice grids and 1 less than the value returned by the property vLine (see properties)! |
|
| | | Return value |
| True if the record with the given properties was found, otherwise false. |
| |
| See Also |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek the data of all detail lines of all sales deliveries for the customer with number 25/0
long lCstNum = 25, lSubNum = 0;
pSDelivDet->SeekByCstNum (smGreaterOrEqual, lCstNum, lSubNum, "", 0, 0);
while (pSDelivDet->GetDBStatus () == 0 && (long)pSDelivDet->pCstNum == lCstNum && (long)pSDelivDet->pCstSubNum == lSubNum)
{
// Process record data
pSDelivDet->GetNext ();
}
|
|
 |
C# |
| |
// Seek the data of all detail lines of all sales deliveries for the customer with number 25/0
int iCstNum = 25, iSubNum = 0;
oSDelivDet.SeekByCstNum (eSeekMode.smGreaterOrEqual, iCstNum, iSubNum, "", 0, 0);
while (oSDelivDet.GetDBStatus () == 0 && (int)oSDelivDet.pCstNum == iCstNum && (int)oSDelivDet.pCstSubNum == iSubNum)
{
// Process record data
oSDelivDet.GetNext ();
}
|
|
 |
VBS |
| |
' Seek the data of all detail lines of all sales deliveries for the customer with number 25/0
Dim iCstNum, iSubNum
iCstNum = 25
iSubNum = 0
Call oSDelivDet.SeekByCstNum(smGreaterOrEqual, iCstNum, iSubNum, "", 0, 0)
While oSDelivDet.GetDBStatus() = 0 And oSDelivDet.pCstNum = iCstNum And oSDelivDet.pCstSubNum = iSubNum
' Process record data
Call oSDelivDet.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek the data of all detail lines of all sales deliveries for the customer with number 25/0
Dim iCstNum, iSubNum As Integer
iCstNum = 25
iSubNum = 0
oSDelivDet.SeekByCstNum(eSeekMode.smGreaterOrEqual, iCstNum, iSubNum, "", 0, 0)
While oSDelivDet.GetDBStatus() = 0 And oSDelivDet.pCstNum = iCstNum And oSDelivDet.pCstSubNum = iSubNum
' Process record data
oSDelivDet.GetNext()
End While
|
|