Quote:
Originally Posted by LoneAngelIbesu
So what is TStaticVar()'s parameter used for?
|
The name.
PHP Code:
new TStaticVar("MyObject");
MyObject.variable = value;
Just make sure you keep a reference to the object somewhere or the garbage collector will eat it.