VB6Runtime / Library / Statements / lock

VB6 Library Reference

VB6 Lock statement syntax: - Lock [#]filenumber[, recordrange] Controls access to all or part of an open file. The Lock statement syntax has these parts:

Part Description
filenumber Required. Any valid file number.
recordrange Optional. Range of records to lock. Can be: record, start To end, or omitted for entire file.

Remarks

Examples

Lock #1
Lock #1, 5
Lock #1, 10 To 20
Lock fileNum, recordNum

Reference

← Back to Statements | View all functions