swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   vfUnLock   OMDN

Library: omvfile - virtual file access and locking
Include: omvfile.xin

Declaration

  define external function vfUnLock
      value omVFile this-vfile
      id    value   integer    lock-id

Where:
this-vfile


lock-id

Purpose

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
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:08:12 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.