Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>lock control file or record access</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOCK                     Control File or Record Access

 LOCK [#] filenum [,{record | [start] TO end}]
 .
 . [statements]
 .
 UNLOCK [#] filenum [,{record | [start] TO end}]

    Make a specified record range or an entire file inaccessible to other
    users.

     filenum    The number under which the file was OPENed.

      record    The number of a record to be LOCKed or UNLOCKed.

       start    The number of the first record to be LOCKed or UNLOCKed.

         end    The number of the last record to be LOCKed or UNLOCKed.

   -----------------------------------------------------------------------

      Notes:    If the file specified by filenum has been opened for
                random access, you may lock either a single record number
                (with the record argument) or a range of record numbers.
                If you specify a range and omit the start argument, all
                records from the beginning of the file to end are locked.

                If the file specified by filenum was opened for sequential
                input or output, the entire file is locked.

                LOCK requires DOS 3.0 or later and SHARE.EXE.

                It is important to UNLOCK all LOCKed records before
                closing the file.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson