|
Seeks a Stock Document Detail line by its stock article number. |
|
|
VARIANT_BOOL SeekByStcArtNum ( enum eSeekMode eSeekMode, BSTR bsArtNumStock, DATE dDocDate ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pArtNumStock | BSTR | Ascending | Hierarchy | pDocDate | DATE (date) | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsArtNumStock | [in] The number of the stock article of the stock document detail line you want to seek. | dDocDate | [in] The document date of the stock document 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 for the stock article with number = 'Stock' of all stock documents
CString strArtNumStock = "Stock";
pStockDocDet->SeekByStcArtNum (smGreaterOrEqual, (LPCSTR)strArtNumStock, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pStockDocDet->GetDBStatus () == 0 && (CString)pStockDocDet->pArtNumStock == strArtNumStock)
{
// Process record data
pStockDocDet->GetNext ();
}
|
|
|
C# |
|
// Seek the data of all detail lines for the stock article with number = 'Stock' of all stock documents
string strArtNumStock = "Stock";
oStockDocDet.SeekByStcArtNum (eSeekMode.smGreaterOrEqual, strArtNumStock, new DateTime ());
while (oStockDocDet.GetDBStatus () == 0 && oStockDocDet.pArtNumStock.ToString () == strArtNumStock)
{
// Process record data
oStockDocDet.GetNext ();
}
|
|
|
VBS |
|
' Seek the data of all detail lines for the stock article with number = 'Stock' of all stock documents
Dim strArtNumStock
Dim dtDocDate
strArtNumStock = "Stock"
Call oStockDocDet.SeekByStcArtNum(smGreaterOrEqual, strArtNumStock, dtDocDate)
While oStockDocDet.GetDBStatus() = 0 And oStockDocDet.pArtNumStock = strArtNumStock
' Process record data
Call oStockDocDet.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek the data of all detail lines for the stock article with number = 'Stock' of all stock documents
Dim strArtNumStock As String
Dim dtDocDate As Date
strArtNumStock = "Stock"
oStockDocDet.SeekByStcArtNum(eSeekMode.smGreaterOrEqual, strArtNumStock, dtDocDate)
While oStockDocDet.GetDBStatus() = 0 And oStockDocDet.pArtNumStock = strArtNumStock
' Process record data
oStockDocDet.GetNext()
End While
|
|