1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/UNLOCK_111111.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

31 lines
1.3 KiB
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:17:13}}
This statement opens access to parts or all of a file to other programs and network users.
{{PageSyntax}}
: [[UNLOCK]] [#]{{Parameter|fileNumber%}}
: [[UNLOCK]] [#]{{Parameter|fileNumber%}}, {{Parameter|record&}}
: [[UNLOCK]] [#]{{Parameter|fileNumber%}}, [{{Parameter|firstRecord&}}] TO {{Parameter|lastRecord&}}
{{PageDescription}}
* {{Parameter|fileNumber%}} is the file number of the file to unlock.
* In the first syntax, the entire file is unlocked.
* In the second syntax, {{Parameter|record&}} is the record number of the file to unlock.
* In the third syntax, the records or bytes in the range [{{Parameter|firstRecord&}},{{Parameter|lastRecord&}}] are unlocked. If {{Parameter|firstRecord&}} is omitted, it is assumed to be the first record or byte.
* For files opened in [[BINARY]] mode, each record corresponds to a single byte.
* [[LOCK]] and [[UNLOCK]] statements are always used in pairs and each statement must match the other one.
* Files must be unlocked before other programs can access them, and before the file is closed.
* [[Keywords_currently_not_supported_by_QB64#Keywords_Not_Supported_in_Linux_or_MAC_OSX_versions|Keyword Not Supported in Linux or MAC versions]]
{{PageSeeAlso}}
* [[LOCK]]
* [[OPEN]]
* [[ACCESS]]
{{PageNavigation}}