
07-13-2006, 07:23 PM
|
|
Banned
|
 |
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
|
|
|
this.foo.bar=""; does not work because its not ACTUALLY a subvariable.. its really just a flag with a period in it. the variable type() == 0 so its not an object with subvariables.
I used the periods like this without making it a TStaticVar() because I need them to be saved in savevars.
If you make them TStaticVar() then I can not just do this.savevars(path/to/file); to save all the so-called subvariables.. I would have to go to each individual subvariable and do it.. which I do not want to because I am using savevars() to backup all the data since its in a DBNPC and they frequently mess up ie: when servers crash.
What you COULD do to fix this problem would be to make a destroy() function for TGraalVar that would function just like the destroy() function in objects.
ie:
this.foo.destroy();
would remove this.foo.bar.test="true"; and all other variables beneath it.
Since all these things show up in getvarnames() and such, it should not be a problem.
But I REALLLLLY need this in order to procede with making my database. I am at a stand still now. |
|
|
|