| |
| Seeks a Sales Invoice Detail line by its follow-up code. |
| |
 |
VARIANT_BOOL SeekByFupCode ( enum eSeekMode eSeekMode, BSTR bsFupCode, DATE dDocDate, BSTR bsBook, LONG lDocNum, SHORT sLineNum ) |
|
| |
| Key information |  | This method uses key number 14 (See SwapKey). |  | This is a unique key. |  | This is a null key, only the records where pFollowUp is not blank are in the index. |
| | | | Key segment information | | Segment Name | Type | Order | Collation | | pFollowUp | BSTR | Ascending | Case insensitive | | pDocDate | DATE (date) | Ascending | - | | pBook | BSTR | Ascending | Case insensitive | | pDocNum | LONG (unsigned) | Ascending | - | | pLineNum | SHORT (unsigned) | Ascending | - |
| | | | Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | bsFupCode | | [in] The follow-up code of the Sales Invoice Detail line you want to seek. | | dDocDate | | [in] The document date of the Sales Invoice of which you want to seek a detail line. | | bsBook | | [in] The book code of the Sales Invoice of which you want to seek a detail line. | | lDocNum | | [in] The document number of the Sales Invoice of which you want to seek a detail line. | | sLineNum | | [in] The line number of the Sales Invoice 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 with a follow-up code of 'FUP'
CString strFupCode = "FUP";
pSInvceDet->SeekByFupCode (smGreaterOrEqual, (LPCSTR)strFupCode, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pSInvceDet->GetDBStatus () == 0 && (CString)pSInvceDet->pFollowUp == strFupCode)
{
// Process record data
pSInvceDet->GetNext ();
}
|
|
 |
C# |
| |
// Seek the data of all detail lines with a follow-up code of 'FUP'
string strFupCode = "FUP";
oSInvceDet.SeekByFupCode (eSeekMode.smGreaterOrEqual, strFupCode, new DateTime ());
while (oSInvceDet.GetDBStatus () == 0 && oSInvceDet.pFollowUp.ToString () == strFupCode)
{
// Process record data
oSInvceDet.GetNext ();
}
|
|
 |
VBS |
| |
' Seek the data of all detail lines with a follow-up code of 'FUP'
Dim strFupCode
Dim dtDocDate
strFupCode = "FUP"
Call oSInvceDet.SeekByFupCode(smGreaterOrEqual, strFupCode, dtDocDate)
While oSInvceDet.GetDBStatus() = 0 And oSInvceDet.pFollowUp = strFupCode
' Process record data
Call oSInvceDet.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek the data of all detail lines with a follow-up code of 'FUP'
Dim strFupCode As String
Dim dtDocDate As Date
strFupCode = "FUP"
oSInvceDet.SeekByFupCode(eSeekMode.smGreaterOrEqual, strFupCode, dtDocDate)
While oSInvceDet.GetDBStatus() = 0 And oSInvceDet.pFollowUp = strFupCode
' Process record data
oSInvceDet.GetNext()
End While
|
|