Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/11/14, 09:39 PM   #1
RavenDT
 
RavenDT's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 6
Exclamation Pairs in Table not returning keys

Greetings, fellow ESOUI brethren.

It seems I am having trouble attempting to empty out a nested table structure in my addon and I was wondering if anyone else may have encountered the same problem as I.

Apparently, there's no way to delete or unassign a table, but I can set all the elements to nil. However, iterating over pairs isn't working. When I ask for pairs:

Code:
for k in pairs (table) do
    d(table[k])
end
I get errors. When I do:

Code:
/script d(table)
I get:

Code:
.(function): GetInterfaceForCharacter = function: 9F3AA8E0
.(table): default = table: 9F3AA7A0
But I know the table structure has non-consecutive numbers for keys. If I do a /script d(table[key]) I get the value.

Does anyone know how to fix this issue? I'd greatly appreciate it!

V/R,
-Raven
  Reply With Quote
 

ESOUI » AddOns » AddOn Help/Support » Pairs in Table not returning keys


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