Venice
AccProp::SeekByCode
 
Seeks an Accounting Proposal by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    enum eAccPropDocType eAccPropDocType,
    BSTR bsCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pDocTypeBYTEAscending-
pCodeBSTRAscendingCase insensitive
 
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.
 
See Also
CreateAccProp
 
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