|
Seeks a Financial Book by its number. |
|
|
VARIANT_BOOL SeekByNumber ( enum eSeekMode eSeekMode, enum eFBookType eFBookType, BYTE bySubPrefix, LONG lNumber ) |
|
|
Key information | | This method uses key number 1 (See SwapKey). | | This is a unique key. |
| | Key segment information | Segment Name | Type | Order | Collation | pFBookType | BYTE | Ascending | - | pSubPrefix | BYTE | Ascending | - | pNumber | LONG (unsigned) | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | eFBookType | [in] A value of the 'eFBookType' enumeration. | bySubPrefix | [in] The subprefix of the Financial Book you want to seek. | lNumber | [in] The number of the Financial Book you want to seek. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Seek all financial books of type 'Bank' that belong to subprefix 0 (default = 'Standard banks')
pFBook->SeekByNumber (smGreaterOrEqual, fbBank, 0, 0);
while (pFBook->GetDBStatus () == 0 && (BYTE)pFBook->pFBookType == fbBank && (BYTE)pFBook->pSubPrefix == 0)
{
// Process record data
pFBook->GetNext ();
}
|
|
|
C# |
|
// Seek all financial books of type 'Bank' that belong to subprefix 0 (default = 'Standard banks')
oFBook.SeekByNumber (eSeekMode.smGreaterOrEqual, eFBookType.fbBank, 0, 0);
while (oFBook.GetDBStatus () == 0 && (eFBookType)((byte)oFBook.pFBookType) == eFBookType.fbBank && (byte)FBook.pSubPrefix == 0)
{
// Process record data
oFBook.GetNext ();
}
|
|
|
VBS |
|
' Seek all financial books of type 'Bank' that belong to subprefix 0 (default = 'Standard banks')
Call oFBook.SeekByNumber(smGreaterOrEqual, fbBank, 0, 0)
While oFBook.GetDBStatus() = 0 And oFBook.pFBookType = fbBank And oFBook.pSubPrefix = 0
' Process record data
Call oFBook.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all financial books of type 'Bank' that belong to subprefix 0 (default = 'Standard banks')
oFBook.SeekByNumber(eSeekMode.smGreaterOrEqual, eFBookType.fbBank, 0, 0)
While oFBook.GetDBStatus() = 0 And oFBook.pFBookType = eFBookType.fbBank And oFBook.pSubPrefix = 0
' Process record data
oFBook.GetNext()
End While
|
|