Venice
Warehouse::SeekByCode
 
Seeks a Warehouse card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCodeBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCode
[in] The code of the Warehouse card you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateWarehouse
 
Samples
 
C++
 
// Seek the warehouse card with code = 'Brugge'
CString strCode = "Brugge";
if (pWarehouse->SeekByCode (smEqual, (LPCSTR)strCode))
    // Process record data

C#
 
// Seek the warehouse card with code = 'Brugge'
string strCode = "Brugge";
if (oWarehouse.SeekByCode (eSeekMode.smEqual, strCode))
    // Process record data

VBS
 
' Seek the warehouse card with code = 'Brugge'
Dim strCode
strCode = "Brugge"
If oWarehouse.SeekByCode(smEqual, strCode) Then
    ' Process record data
End If

VB.NET
 
' Seek the warehouse card with code = 'Brugge'
Dim strCode As String
strCode = "Brugge"
If oWarehouse.SeekByCode(eSeekMode.smEqual, strCode) Then
    ' Process record data
End If