Click or drag to resize

VoDbRlock Function

Lock the current record.

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

Parameters

uRecID
Type: Usual
The ID of the record to be locked.  To omit, specify NIL. This will lock the current record and release all previously locked records.

Return Value

Type: Boolean
TRUE if the record lock is obtained; otherwise, FALSE.  An attempt to lock a record in an empty database returns TRUE.
Remarks
VODBRLock() is like DBRLock() but is strongly typed.  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 DBRLock() for more information and examples.
Examples