Accnt::SeekByAccNum
 
Seeks an Account card by its account number.
 
VARIANT_BOOL SeekByAccNum (
    enum eSeekMode eSeekMode,
    BSTR bsAccNum
)
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsAccNum
[in] The account number of the General Account you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
Remarks
This method seeks the file using the key 'ACC_NUM' (key number 1).
 
See Also
CreateAccnt
The UNIT4 C-Logic Description File 'Accnt.cld' in the Cld-directory in the system path of your Venice installation.
 
Samples
 
C++
 
// Seek the general account with number = '100'
if (pAccnt->SeekByAccNum (smEqual, "100"))
    // Process record data

C#
 
// Seek the general account with number = '100'
if (oAccnt.SeekByAccNum (eSeekMode.smEqual, "100"))
    // Process record data

VBS
 
' Seek the general account with number = '100'
If oAccnt.SeekByAccNum(smEqual, "100") Then
    ' Process record data
End If

VB.NET
 
' Seek the general account with number = '100'
If oAccnt.SeekByAccNum(eSeekMode.smEqual, "100") Then
    ' Process record data
End If