AccProp::SeekByCode
 
Seeks an Accounting Proposal by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    enum eAccPropDocType eAccPropDocType,
    BSTR bsCode
)
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eAccPropDocType
[in] A value of the 'eAccPropDocType' enumeration.
bsCode
[in] The code of the 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 'APH_COD' (key number 1).
 
See Also
CreateAccProp
The UNIT4 C-Logic Description File 'APrpH.cld' in the Cld-directory in the system path of your Venice installation.
 
Samples
 
C++
 
// Seek the accounting proposal of type 'Sales invoice' with code = 'P_FAC'
if (pAccProp->SeekByCode (smEqual, apdtAslInv, "P_FAC"))
    // Process record data

C#
 
// Seek the accounting proposal of type 'Sales invoice' with code = 'P_FAC'
if (oAccProp.SeekByCode (eSeekMode.smEqual, eAccPropDocType.apdtAslInv, "P_FAC"))
    // Process record data

VBS
 
' Seek the accounting proposal of type 'Sales invoice' with code = 'P_FAC'
If oAccProp.SeekByCode(smEqual, apdtAslInv, "P_FAC") Then
    ' Process record data
End If

VB.NET
 
' Seek the accounting proposal of type 'Sales invoice' with code = 'P_FAC'
If oAccProp.SeekByCode(eSeekMode.smEqual, eAccPropDocType.apdtAslInv, "P_FAC") Then
    ' Process record data
End If