|
||||||||||
|
||||||||||
Other Library Functions |
function | vfUnLock |
Library: omvfile - virtual file access and locking
Include: omvfile.xin |
define external function vfUnLock value omVFile this-vfile id value integer lock-id
Where:
this-vfile
lock-id
Use vfUnLock to unlock the entire file, or the area of an omVFile that was locked (if a lock-id was specified).
Sample function call:
set vfile to vfOpen "counter.txt" for "rw" vfLock vfile vfUnLock vfile
In the example above, no other applications are able to read from or write to the file "counter.txt" until the vfUnlock
statement is executed. Your application can access the locked file, however, and can update it and save it, which is the purpose of vfLock and vfUnlock.
Other Library Functions vfCursorPosition vfDiscard VFileIsVersionCompatible VFileLibraryVersion vfLock vfMoveCursor vfOpen vfReader vfSize vfUnLock vfURL vfWriter |
---- |