VB.NET Language in a Nutshell

   
Unlock Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

Unlock( filenumber [, record ) Unlock( filenumber [, fromrecord [, torecord ]])

filenumber (required; Integer)

Any valid file number

record (required; Long)

The record or byte number at which to commence the lock

fromrecord (required; Long)

The first record or byte number to lock

torecord (required; Long)

The last record or byte number to lock

Description

Use the Unlock procedure in situations where more than one part of your program may need read and write access to the same data file. The Unlock procedure removes a lock that the Lock procedure placed on a section of the file or the whole file.

Rules at a Glance

Programming Tips and Gotchas

VB.NET/VB 6 Differences

See Also

Lock Procedure

   

Категории