Artcl::SeekByBarCode (Interface: Artcl)
 
Seeks an Article card by its bar code.
 
VARIANT_BOOL SeekByBarCode (
    enum eSeekMode eSeekMode,
    BSTR bsBarCode
)
 
Key information
This method uses key number 15 (See SwapKey).
This is a unique key.
This is a null key, only the records where pBarcode is not blank are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pBarcodeBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsBarCode
[in] The bar code of the Article you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateArtcl
 
Samples
 
C++
 
// Seek the article with bar code = 'BAR_CODE'
if (pArtcl->SeekByBarCode (smEqual, "BAR_CODE"))
    // Process record data

C#
 
// Seek the article with bar code = 'BAR_CODE'
if (oArtcl.SeekByBarCode (eSeekMode.smEqual, "BAR_CODE"))
    // Process record data

VBS
 
' Seek the article with bar code = 'BAR_CODE'
If oArtcl.SeekByBarCode(smEqual, "BAR_CODE") Then
    ' Process record data
End If

VB.NET
 
' Seek the article with bar code = 'BAR_CODE'
If oArtcl.SeekByBarCode(eSeekMode.smEqual, "BAR_CODE") Then
    ' Process record data
End If