VoDbRlock Function | |
Lock the current record.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION VoDbRlock(
uRecId AS USUAL
) AS LOGIC
public static bool VoDbRlock(
Usual uRecId
)
Request Example
View SourceParameters
- uRecId
- Type: Usual
Return Value
Type:
Logic
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 See Also