Venice
StValDet::SeekByArtNum
 
Seeks a Stock Valuation Detail by its article number.
 
VARIANT_BOOL SeekByArtNum (
    enum eSeekMode eSeekMode,
    DATE dEndDate,
    BSTR bsArtNum,
    BSTR bsWarehouse
)
 
Key information
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pEndDateDATE (date)Ascending-
pArtNumBSTRAscendingHierarchy
pWarehouseBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
dEndDate
[in] The end date of the stock valuation detail you want to seek.
bsArtNum
[in] The article number of the stock valuation detail you want to seek.
bsWarehouse
[in] The warehouse code of the stock valuation detail you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateStValDet
 
Samples
 
C++
 
// Seek the stock valuation detail for article number 'Art_001' in warehouse 'WRH' that were valuated until 15/06/2024
if (pStValDet->SeekByArtNum (smEqual, COleDateTime (2024, 6, 15, 0, 0, 0).m_dt, "Art_001", "WRH"))
{
    // Process record data
}

C#
 
// Seek the stock valuation detail for article number 'Art_001' in warehouse 'WRH' that were valuated until 15/06/2024
if (oStValDet.SeekByArtNum (eSeekMode.smEqual, new DateTime (2024, 6, 15), "Art_001", "WRH"))
{
    // Process record data
}

VBS
 
' Seek the stock valuation detail for article number 'Art_001' in warehouse 'WRH' that were valuated until 15/06/2024
If oStValDet.SeekByArtNum(smEqual, #6/15/2024#, "Art_001", "WRH") Then
    ' Process record data
End If

VB.NET
 
' Seek the stock valuation detail for article number 'Art_001' in warehouse 'WRH' that were valuated until 15/06/2024
If oStValDet.SeekByArtNum(eSeekMode.smEqual, #6/15/2024#, "Art_001", "WRH") Then
    ' Process record data
End If