Syntax
block VarType varName
Description
The block statement is used to flag a local variable as mutable when declared outside a block. Block variables can be changed inside a block such as dispatchglobal or dispatchmain. The block attribute is only allowed on local variables.
Examples
local fn MyFunction
block long i
dispatchglobal
for i = 0
to 99
// ...
next
dispatchend
end fn
As of FB 7.0.16, multiple block variables can be declared on the same line.
local fn MyFunction
block long a, b, c
// ...
end fn
See also
dispatchglobal; dispatchmain