# locked clause

The locked clause is used when the requested
item is locked and waiting is not desired.

## Syntax

```
locked statement.block
```

## Description

Note: Use of the locked clause ignores any locked item read retry timeout specified by the
 updLockTimeout registry string value in the
 HKEY_LOCAL_MACHINE/SOFTWARE/RocketSoftware/D3/CurrentVersion/D3FSI/
 registry key.

## Example(s)

```
readu cust.item from fv.cust,ID locked print ID:" is locked by port ":system(0)
```

## See also

- [matread statement](https://d3codex.com/pickbasic-flashbasic/matread-statement/)
- [read statement](https://d3codex.com/pickbasic-flashbasic/read-statement/)
- [readv statement](https://d3codex.com/pickbasic-flashbasic/readv-statement/)
- [statement blocks](https://d3codex.com/pickbasic-flashbasic/statement-blocks/)
- [then clause](https://d3codex.com/pickbasic-flashbasic/then-clause/)
- [then/else statement blocks](https://d3codex.com/pickbasic-flashbasic/then-else-statement-blocks/)

---
Source: https://d3codex.com/pickbasic-flashbasic/locked-clause/ - part of the D3Codex reference.
