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