Suppl::SeekByAlias (Interface: Suppl)
 
Seeks a Supplier card by its alias.
 
VARIANT_BOOL SeekByAlias (
    enum eSeekMode eSeekMode,
    BSTR bsAlias
)
 
Key information
This method uses key number 3 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pAliasBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsAlias
[in] The alias of the supplier you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSuppl
 
Samples
 
C++
 
// Seek the supplier with alias = 'ALIAS'
if (pSuppl->SeekByAlias (smEqual, "ALIAS"))
    // Process record data

C#
 
// Seek the supplier with alias = 'ALIAS'
if (oSuppl.SeekByAlias (eSeekMode.smEqual, "ALIAS"))
    // Process record data

VBS
 
' Seek the supplier with alias = 'ALIAS'
If oSuppl.SeekByAlias(smEqual, "ALIAS") Then
    ' Process record data
End If

VB.NET
 
' Seek the supplier with alias = 'ALIAS'
If oSuppl.SeekByAlias(eSeekMode.smEqual, "ALIAS") Then
    ' Process record data
End If