1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/UNLOCK.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

27 lines
1.4 KiB
Plaintext

The {{KW|UNLOCK}} statement opens access to parts or all of a file to other programs and network users.
{{PageSyntax}}
:&lt;code&gt;{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}&lt;/code&gt;
:&lt;code&gt;{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}, {{Parameter|record&amp;}}&lt;/code&gt;
:&lt;code&gt;{{KW|UNLOCK}} [#]{{Parameter|fileNumber%}}, [{{Parameter|firstRecord&amp;}}] TO {{Parameter|lastRecord&amp;}}&lt;/code&gt;
{{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&amp;}} is the record number of the file to unlock.
* In the third syntax, the records or bytes in the range [{{Parameter|firstRecord&amp;}},{{Parameter|lastRecord&amp;}}] are unlocked. If {{Parameter|firstRecord&amp;}} 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}}
* {{KW|LOCK}}
* {{KW|OPEN}}
* {{KW|ACCESS}}
{{PageNavigation}}