Click or drag to resize

VoDbGoBottom Function

Move to the last logical record.

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

Return Value

Type: Boolean
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#
cLast := "Winston"
DBUseArea(TRUE, "DBFNTX", "sales", "sales", TRUE)
VODBOrdListAdd("lastname", NIL, NIL)
Sales->(VODBGoBottom())
IF (Sales->Last == "Winston")
        IF Sales->(RLock())
                Sales->(VODBDelete())
                ? "Record deleted: ", sales;
                        (VODBDeleted())
        ELSE
                ? "Unable to lock record..."
        ENDIF
END
See Also