Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-30-13, 02:05 AM   #1
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Table Iteration

Good Morning,

I was curious about how I may go about ensuring a table of mine is iterated over in a certain order (simply, top to bottom.)

I tried to use the ipairs() function for my loop, and it didn't work; and using pairs(), it reads my table in a rather erratic fashion.

My table utilizes the key and value as information, so I can't use the key as an index. The next() function seems to produce the same results as pairs().

Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Table Iteration


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off