Shared Variables

Instead of making a variable global to all procedures, it is possible to make that variable accessible only to the procedures that need it.

String output
Print output

Procedure ComposeHello()
Shared String output
End Proc

This piece of code will output the string "Hello". This is because it has been changed inside the procedure ComposeHello which gained access to it using the Shared command.

This technique makes code much neater because only the procedures that need the variables will have access to them.

Table of contents