Venice
Accnt::SeekByAlias
 
Seeks an Account card by its alias.
 
VARIANT_BOOL SeekByAlias (
    enum eSeekMode eSeekMode,
    BSTR bsAlias
)
 
Key information
This method uses key number 7 (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 General Account you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateAccnt
 
Samples
 
C++
 
// Seek the general account with alias = 'ALIAS'
if (pAccnt->SeekByAlias (smEqual, "ALIAS"))
    // Process record data

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

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

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