Global


Syntax
Global <variable> [,<variable>,...] 
Description
Global allows the variables to be used as global, ie: they can be accessed inside a Procedure. In this case the command Global for the according variables must be called before the declaration of the procedure. To use 'local' variables in a procedure, which have the same name as global variables, look at the Protected and Static keywords. Arrays and linkedlists are always global in PureBasic, therefore you do not need to use the Global command with one of those.

Example:

  Global a.l, b.b, c, d