DbServer.BLOBRootLock Method | |
Obtain a lock on the root area of a BLOB file.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD BLOBRootLock() AS USUAL
public virtual Usual BLOBRootLock()
Request Example
View SourceReturn Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks
Use DBServer:BLOBRootLock() when accessing the data server in shared mode to obtain a lock on the root area of a BLOB file for reading from or writing to the root area.
Examples
This example illustrates how to store information in the root of a BLOB file and how to use locking for a data server opened in shared mode.
1FUNCTION GetSettings()
2LOCAL aCustSettings AS ARRAY
3LOCAL oDBCust AS DBServer
4
5oDBCust := Customer{}
6IF oDBCust:BLOBRootLock()
7aCustSettings := oDBCust:BLOBRootGet()
8oDBCust:BLOBRootUnlock()
9ELSE
10Alert("Could not obtain root lock")
11ENDIF
12oDBCust:Close()
13RETURN aCustSettings
See Also