View Single Post
05/28/14, 02:30 PM   #15
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by lyravega View Post
# should work on saved variables if you construct it like an array. If this isn't the case, it won't work. # only works for proper arrays.
# 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.
  Reply With Quote