AnAcc::SeekByDescrEng (Interface: AnAcc)
 
Seeks an Analytical Account card by its English description.
 
VARIANT_BOOL SeekByDescrEng (
    enum eSeekMode eSeekMode,
    enum eAnaAccType eAnaAccType,
    BSTR bsDescr
)
 
Key information
This method uses key number 5 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pDescrEng is not blank are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pAnaAccTypeBYTEAscending-
pDescrEngBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eAnaAccType
[in] A value of the 'eAnaAccType' enumeration.
bsDescr
[in] The English description of the Analytical Account you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateAnAcc
 
Samples
 
C++
 
// Seek the analytical account of type 'Unit' with English description = 'Unit'
if (pAnAcc->SeekByDescrEng (smEqual, aatUnit, "Unit"))
    // Process record data

C#
 
// Seek the analytical account of type 'Unit' with English description = 'Unit'
if (oAnAcc.SeekByDescrEng (eSeekMode.smEqual, eAnaAccType.aatUnit, "Unit"))
    // Process record data

VBS
 
' Seek the analytical account of type 'Unit' with English description = 'Unit'
If oAnAcc.SeekByDescrEng(smEqual, aatUnit, "Unit") Then
    ' Process record data
End If

VB.NET
 
' Seek the analytical account of type 'Unit' with English description = 'Unit'
If oAnAcc.SeekByDescrEng(eSeekMode.smEqual, eAnaAccType.aatUnit, "Unit") Then
    ' Process record data
End If