Shared
DescriptionShared <variable> [,<variable>,...]
Shared allows a variable to be accessed within a procedure.
It's not needed to use the Shared command to access Dim arrays or NewList linked lists which were defined outside a procedure, since they are always global.Example:
a = 10 Procedure Change() Shared a a = 20 EndProcedure If OpenConsole() Change() PrintN(Str(a)) ; Will print 20, as the variable has been shared. Input() CloseConsole() EndIf End