AnaProp::SeekByCode
 
Seeks an Analytical Accounting Proposal by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    enum eAnaPropAccType eAnaPropAccType,
    BSTR bsCode
)
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eAnaPropAccType
[in] A value of the 'eAnaPropAccType' enumeration.
bsCode
[in] The code of the analytical accounting proposal 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 'ANH_COD' (key number 1).
 
See Also
CreateAnaProp
The UNIT4 C-Logic Description File 'AnPrH.cld' in the Cld-directory in the system path of your Venice installation.
 
Samples
 
C++
 
// Seek the analytical accounting proposal of type 'Unit' with code = 'UNIT'
if (pAnaProp->SeekByCode (smEqual, apatUnit, "UNIT"))
    // Process record data

C#
 
// Seek the analytical accounting proposal of type 'Unit' with code = 'UNIT'
if (oAnaProp.SeekByCode (eSeekMode.smEqual, eAnaPropAccType.apatUnit, "UNIT"))
    // Process record data

VBS
 
' Seek the analytical accounting proposal of type 'Unit' with code = 'UNIT'
If oAnaProp.SeekByCode(smEqual, apatUnit, "UNIT") Then
    ' Process record data
End If

VB.NET
 
' Seek the analytical accounting proposal of type 'Unit' with code = 'UNIT'
If oAnaProp.SeekByCode(eSeekMode.smEqual, eAnaPropAccType.apatUnit, "UNIT") Then
    ' Process record data
End If