View Single Post
04/10/14, 05:39 PM   #16
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
No, what I mean is, if you Initialise the Variables and then deliberately clear them, it doesn't clear the saved variables file itself from what I can see, just the one in memory. So, if you wanted to just keep the current session's data active you can use the temporary variable you initialise it with and if you want to see the data as a whole use the full global table and bypass the extra bocks that it comes with.

I tested it again the other day while running some other tests and again it seems to me that you can clear the active data but unless you empty the named _G[...] table for the saved variables file itself it won't clear it totally.

EG.

AddonLoaded ..
... InitSavedVars
... Clear local table used to write to saved vars
... rest of game play
... Log Out

Look at saved file and the data from before and the new data is still there in its entirety.
  Reply With Quote