Click or drag to resize

VoDbGoBottom Function

X#
Move to the last logical record.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION VoDbGoBottom() AS LOGIC
Request Example View Source

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
VODBGoBottom() is the same as DBGoBottom().
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 global structure, StrucErrInfo, will contain needed information regarding any error that occurs. See DBGoBottom() for more information.
Examples
The following example uses VODBGoBottom() to position the record pointer on the last logical record:
X#
 1cLast := "Winston"
 2DBUseArea(TRUE, "DBFNTX", "sales", "sales", TRUE)
 3VODBOrdListAdd("lastname", NIL, NIL)
 4Sales->(VODBGoBottom())
 5IF (Sales->Last == "Winston")
 6    IF Sales->(RLock())
 7        Sales->(VODBDelete())
 8        ? "Record deleted: ", sales;
 9            (VODBDeleted())
10    ELSE
11        ? "Unable to lock record..."
12    ENDIF
13END
See Also