Venice
Product::SeekByStartDate
 
Seeks a Production Document by its start date.
 
VARIANT_BOOL SeekByStartDate (
    enum eSeekMode eSeekMode,
    DATE dStartDate,
    BSTR bsArtNum
)
 
Key information
This method uses key number 2 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pStartDateDATE (date)Ascending-
pArtNumBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
dStartDate
[in] The start date of the Production Document you want to seek.
bsArtNum
[in] The article number of the Production Document you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateProduct
 
Samples
 
C++
 
// Seek all production documents with a starting date greater than or equal to 01/04/2024
COleDateTime odtStartDate;
odtStartDate.SetDate (2024, 4, 1);
pProduct->SeekByStartDate (smGreater, odtStartDate, "");
while (pProduct->GetDBStatus () == 0 && (DATE)pProduct->pStartDate >= odtStartDate)
{
    // Process record data
    
    pProduct->GetNext ();
}

C#
 
// Seek all production documents with a starting date greater than or equal to 01/04/2024
DateTime dtStartDate = new DateTime (2024, 4, 1);
oProduct.SeekByStartDate (eSeekMode.smGreater, dtStartDate, "");
while (oProduct.GetDBStatus () == 0 && (DateTime)oProduct.pStartDate >= dtStartDate)
{
    // Process record data
    
    oProduct.GetNext ();
}

VBS
 
' Seek all production documents with a starting date greater than or equal to 01/04/2024
Dim dtStartDate
dtStartDate = #4/1/2024#
Call oProduct.SeekByStartDate(smGreater, dtStartDate, "")
While oProduct.GetDBStatus() = 0 And oProduct.pStartDate >= dtStartDate
' Process record data

Call oProduct.GetNext()
Wend

VB.NET
 
' Seek all production documents with a starting date greater than or equal to 01/04/2024
Dim dtStartDate As Date
dtStartDate = #4/1/2024#
oProduct.SeekByStartDate(eSeekMode.smGreater, dtStartDate, "")
While oProduct.GetDBStatus() = 0 And oProduct.pStartDate >= dtStartDate
' Process record data

oProduct.GetNext()
End While