View Single Post
05/28/14, 09:02 PM   #16
lyravega
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 93
Originally Posted by zgrssd View Post
# does not work on saved variables with int indizes. It returns 0, always.
Sub-elements of the saved table work normaly regarding #

Just put it into SavedVar.Data[i] isntead of SavedVar[i] and you can properly itterate over SavedVar.Data using #SavedVar.Data.
It is also better practice to hand normal arrays (instead of Saved Var Acessor objects) to functions.
You can insert data at the root of the table... and if you use it like an array, # returns correct stuff.
  Reply With Quote