# capturing statement

The capturing statement resumes the capturing effect from the previous
 execute...capturing statements in a FlashBASIC or BASIC program.

## Syntax

```
capturing [off|on|var]
```

## Parameter(s)

| off | Turns off the capturing effect from the previous execute...capturing statements in a FlashBASIC or BASIC program. |
| --- | --- |
| on | Resumes the capturing effect. |
| var | Capturing is turned on if the variable evaluates to non-zero (true) and turned off if it evaluates to 0 (false). |

## Example(s)

system(26) checks to see if capturing is turned on. If capturing is on, this
statement turns it off.

```
if system(26) then capturing off
```
Capturing is enabled if the value of capstat is not zero.

```
read capstat from statfile,&#39;capstat&#39; else
capstat = 0
capturing capstat
```

## See also

- [execute statement](https://d3codex.com/pickbasic-flashbasic/execute-statement/)
- [execute statement (UNIX)](https://d3codex.com/pickbasic-flashbasic/execute-statement-unix/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [tcl statement](https://d3codex.com/pickbasic-flashbasic/tcl-statement/)

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