View Single Post
02-18-11, 08:42 PM   #16
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Even if you want to access the bnid as a string it is still technically a table element.


EG.

Code:
tblName = {}
tblName.VarString is the same as tblName["VarString"]
tblName.subTblName = {}
tblName.subTblName.AnotherString 
is the same as tblName.subTblName["AnotherString"] 
and the same as tblName["subTblName"].AnotherString 
and the same as tblName["subTblName]["AnotherString"]  
As I found out myself recently while playing with tables :D
These can also be initialised straight off the bat as :

Code:
tblName = {
  VarString = "...."
  subTblName = {
    AnotherString = "---"
  }
}
In both situations each table of data has to be initialised before it can be used.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 02-18-11 at 08:45 PM.
  Reply With Quote