|
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 Name | Type | Order | Collation | pDocType | BYTE | Ascending | - | pCode | BSTR | Ascending | Case 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 |
|
|
|
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
|
|