Click or drag to resize

VoDbRecno Function

X#
Return the current record number.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbRecno() AS DWORD
Request Example View Source

Return Value

Type: DWord
The current record number.
If the work area contains a database file with 0 records, VODBRecNo() returns 1, BOF() and EOF() both return TRUE, and LastRec() returns 0. If the record pointer is moved past the last record, VODBRecNo() returns LastRec() + 1 and EOF() returns TRUE.
If an attempt is made to move before the first record, VODBRecNo() returns the record number of the first logical record in the database file and BOF() returns TRUE.
If no database file is open, VODBRecNo() will return a 0.
Remarks
VODBRecNo() is the same as RecNo(). This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
See RecNo() for more information
Examples