|
If you have a class created at the start of the script, is there anyway to get variables or arrays from outside that class, say if you have a class function you want to create? Something like:
Is it possible to do anything like this? Thanks for your time.
(comments are locked)
|
|
It is possible using static variables. Static variables have global scope (can be accessed anywhere). Great, thanks. That worked. Is there a way to do something like that for arrays as well? I couldn't find anything in the documentation about that.
Nov 08 '10 at 12:32 AM
Soulis6
Any data type can be static, that includes arrays.
Nov 08 '10 at 09:11 AM
_Petroz
(comments are locked)
|
