GLOBAL

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data types and variables > DIM >

GLOBAL

 

Description

 

Synonymous of DIM keyword when used outside any function.

GLOBAL declares the specified variable(s) as global to the entire program. This gives a procedure access to variable(s), without having to pass them as parameters.

 

Syntax

 

see DIM keyword

 

Returns

 

Inside a function GLOBAL statement will define a GLOBAL variable the first time the function is executed and ignored in all other function execution.

 

Parameters

 

Remarks

 

Restrictions

 

See also

 

Examples