LOCAL [type] decl [,decl]..

Defines variables that are local to the subroutine or function.

This command uses exactly the same syntax as DIM and will create variables that will only be visible within the subroutine or function. They will be automatically discarded when the subroutine or function exits.

See DIM for the full syntax and for declaring global variables.