|
Seeks a Sales Order 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 Order Detail line you want to seek. | dDocDate | [in] The document date of the Sales Order 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";
pSOrderDet->SeekByFupCode (smGreaterOrEqual, (LPCSTR)strFupCode, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pSOrderDet->GetDBStatus () == 0 && (CString)pSOrderDet->pFollowUp == strFupCode)
{
// Process record data
pSOrderDet->GetNext ();
}
|
|
|
C# |
|
// Seek the data of all detail lines with a follow-up code of 'FUP'
string strFupCode = "FUP";
oSOrderDet.SeekByFupCode (eSeekMode.smGreaterOrEqual, strFupCode, new DateTime ());
while (oSOrderDet.GetDBStatus () == 0 && oSOrderDet.pFollowUp.ToString () == strFupCode)
{
// Process record data
oSOrderDet.GetNext ();
}
|
|
|
VBS |
|
' Seek the data of all detail lines with a follow-up code of 'FUP'
Dim strFupCode
Dim dtDocDate
strFupCode = "FUP"
Call oSOrderDet.SeekByFupCode(smGreaterOrEqual, strFupCode, dtDocDate)
While oSOrderDet.GetDBStatus() = 0 And oSOrderDet.pFollowUp = strFupCode
' Process record data
Call oSOrderDet.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"
oSOrderDet.SeekByFupCode(eSeekMode.smGreaterOrEqual, strFupCode, dtDocDate)
While oSOrderDet.GetDBStatus() = 0 And oSOrderDet.pFollowUp = strFupCode
' Process record data
oSOrderDet.GetNext()
End While
|
|