|
|||||
|
||||||
Other Library Functions |
function |
vfsUnlock |
Library: File system utilities (OMVFS) legacy
Include: omvfs.xin |
define external function vfsUnlock value vfsFile file id value integer lock-id optional
Argument definitions
Use vfsUnlock to unlock a file. A single locked section or the entire file may be unlocked.
You must include the following line at the beginning of your OmniMark program:
include "omvfs.xin"
file must be open (else external exception VFS200).
lock-id must be the ID of an existing lock on the specified file (else external exception VFS218).
If lockid is
External exception VFS300 is thrown for any general OS operation failure. The text accompanying the exception will contain details on the reason for the failure.
This program shows a lock being set and then removed.
include "omvfs.xin" process local vfsFile myFile2 local integer myLock . . . set myFile2 to vfsOpen "myfile.txt" . . . vfsLock myFile2 from vfs-start to 800 id myLock . . . vfsUnlock myFile2 id myLock