Click or drag to resize

DbServer.BLOBRootUnlock Method

Release the lock on a BLOB file's root area.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.5
Syntax
 VIRTUAL METHOD BLOBRootUnlock() AS USUAL

Return Value

Type: Usual
Remarks
Use DBServer:BLOBRootUnlock() to release a lock previously obtained using DBServer:BLOBRootLock().
Tip Tip
The only methods that require the use of DBServer:BLOBRootLock() or DBServer:BLOBRootUnlock() are DBServer:BLOBRootGet() and DBServer:BLOBRootPut().
Examples
This example illustrates how to properly lock and unlock the root area of a BLOB file for a data server opened in shared mode.
X#
 1FUNCTION GetSettings()
 2LOCAL aCustSettings AS ARRAY
 3LOCAL oDBCust AS DBServer
 4// Open a customer file in shared mode
 5oDBCust := Customer{}
 6IF oDBCust:BLOBRootLock()
 7aCustSettings := oDBCust:BLOBRootGet()
 8oDBCust:BLOBRootUnlock()
 9ELSE
10Alert("Could not obtain root lock")
11ENDIF
12oDBCust:Close()
13RETURN aCustSettings
See Also