| |
| Seeks a Purchase Order 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 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 for the article with stock number = 'Stock' of all purchase orders
CString strArtNumStock = "Stock";
pPOrderDet->SeekByStcArtNum (smGreaterOrEqual, (LPCSTR)strArtNumStock, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pPOrderDet->GetDBStatus () == 0 && (CString)pPOrderDet->pArtNumStock == strArtNumStock)
{
// Process record data
pPOrderDet->GetNext ();
}
|
|
 |
C# |
| |
// Seek the data of all detail lines for the article with stock number = 'Stock' of all purchase orders
string strArtNumStock = "Stock";
oPOrderDet.SeekByStcArtNum (eSeekMode.smGreaterOrEqual, strArtNumStock, new DateTime ());
while (oPOrderDet.GetDBStatus () == 0 && oPOrderDet.pArtNumStock.ToString () == strArtNumStock)
{
// Process record data
oPOrderDet.GetNext ();
}
|
|
 |
VBS |
| |
' Seek the data of all detail lines for the article with stock number = 'Stock' of all purchase orders
Dim strArtNumStock
Dim dtDocDate
strArtNumStock = "Stock"
Call oPOrderDet.SeekByStcArtNum(smGreaterOrEqual, strArtNumStock, dtDocDate)
While oPOrderDet.GetDBStatus() = 0 And oPOrderDet.pArtNumStock = strArtNumStock
' Process record data
Call oPOrderDet.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek the data of all detail lines for the article with stock number = 'Stock' of all purchase orders
Dim strArtNumStock As String
Dim dtDocDate As Date
strArtNumStock = "Stock"
oPOrderDet.SeekByStcArtNum(eSeekMode.smGreaterOrEqual, strArtNumStock, dtDocDate)
While oPOrderDet.GetDBStatus() = 0 And oPOrderDet.pArtNumStock = strArtNumStock
' Process record data
oPOrderDet.GetNext()
End While
|
|