# fileunlock statement

The fileunlock statement releases an
exclusive lock set by the filelock statement on
an entire file.

## Syntax

```
fileunlock {file.var}
```

## Parameter(s)

| file.var | Specifies the file to unlock. If file.var is not specified, then the default file variable is assumed. |
| --- | --- |

## Description

Once a file lock has been set,
any other port that attempts to update, item lock, or file lock that
file will fail.

## See also

- [begin work statement](https://d3codex.com/pickbasic-flashbasic/begin-work-statement/)
- [clear-basic-locks macro](https://d3codex.com/tcl/clear-basic-locks-macro/)
- [clear-locks command](https://d3codex.com/tcl/clear-locks-command/)
- [filelock statement](https://d3codex.com/pickbasic-flashbasic/filelock-statement/)
- [lock statement](https://d3codex.com/pickbasic-flashbasic/lock-statement/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/fileunlock-statement/ - part of the D3Codex reference.
