Venice
AnAcc::SeekByCode
 
Seeks an Analytical Account card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    enum eAnaAccType eAnaAccType,
    BSTR bsCode
)
 
Key information
This method uses key number 2 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pAnaAccTypeBYTEAscending-
pCodeBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eAnaAccType
[in] A value of the 'eAnaAccType' enumeration.
bsCode
[in] The code 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 'Centre' with code = 'CENT'
if (pAnAcc->SeekByCode (smEqual, aatCent, "CENT"))
    // Process record data

C#
 
// Seek the analytical account of type 'Centre' with code = 'CENT'
if (oAnAcc.SeekByCode (eSeekMode.smEqual, eAnaAccType.aatCent, "CENT"))
    // Process record data

VBS
 
' Seek the analytical account of type 'Centre' with code = 'CENT'
If oAnAcc.SeekByCode(smEqual, aatCent, "CENT") Then
    ' Process record data
End If

VB.NET
 
' Seek the analytical account of type 'Centre' with code = 'CENT'
If oAnAcc.SeekByCode(eSeekMode.smEqual, eAnaAccType.aatCent, "CENT") Then
    ' Process record data
End If