Thread Tools Display Modes
Prev Previous Post   Next Post Next
09/29/14, 11:46 AM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Add an array to control.dataEntry.data?

Hey,

is it possible to add an array to the dataEntry.data node of a control (e.g. an inventory item)?

I've seen ResearchAssistant adding information there. And i've tried to do it the same way.
But I'm not able to add information that are deeper then 1 value.

Let's say this would work:
control.dataEntry.data.newvalue = "Helo World"

But this doesn't work:
local ar = {}
ar[1] = "Hello World"
ar[2] = "Test"
control.dataEntry.data.newvalue = ar

It isn't even possible do add information with a depth of 2:
control.dataEntry.data.newvalue.here = "Hello World"

Any1 got an idea how to do this properly?

Thanks.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Add an array to control.dataEntry.data?


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