|
Seeks a Sales Delivery Detail line by its follow-up code. |
|
|
VARIANT_BOOL SeekByFupCode ( enum eSeekMode eSeekMode, BSTR bsFollowUp, DATE dDocDate ) |
|
|
Key information | | This method uses key number 8 (See SwapKey). | | This key allows duplicates. | | 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 | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsFollowUp | [in] The follow-up code of the Sales Delivery Detail line you want to seek. | dDocDate | [in] The document date of the Sales Delivery of which you want to seek a detail line. | | 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";
pSDelivDet->SeekByFupCode (smGreaterOrEqual, (LPCSTR)strFupCode, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pSDelivDet->GetDBStatus () == 0 && (CString)pSDelivDet->pFollowUp == strFupCode)
{
// Process record data
pSDelivDet->GetNext ();
}
|
|
|
C# |
|
// Seek the data of all detail lines with a follow-up code of 'FUP'
string strFupCode = "FUP";
oSDelivDet.SeekByFupCode (eSeekMode.smGreaterOrEqual, strFupCode, new DateTime ());
while (oSDelivDet.GetDBStatus () == 0 && oSDelivDet.pFollowUp.ToString () == strFupCode)
{
// Process record data
oSDelivDet.GetNext ();
}
|
|
|
VBS |
|
' Seek the data of all detail lines with a follow-up code of 'FUP'
Dim strFupCode
Dim dtDocDate
strFupCode = "FUP"
Call oSDelivDet.SeekByFupCode(smGreaterOrEqual, strFupCode, dtDocDate)
While oSDelivDet.GetDBStatus() = 0 And oSDelivDet.pFollowUp = strFupCode
' Process record data
Call oSDelivDet.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"
oSDelivDet.SeekByFupCode(eSeekMode.smGreaterOrEqual, strFupCode, dtDocDate)
While oSDelivDet.GetDBStatus() = 0 And oSDelivDet.pFollowUp = strFupCode
' Process record data
oSDelivDet.GetNext()
End While
|
|