Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-30-07, 01:09 AM   #1
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 18
table/for k,v pairs() question

I did a user filled table with frames names.

and i want to make it a toggle function, so when button1 is called,
for k,v in pairs(button1) do v:Hide() end.

but or because inside the table these value are strings, or because using the "v" in v:hide() dont work.

it giving me the error about trying to put a nil value to Hide().

Any help is appreciated.

Code here = http://coldfury.pastey.net/76136
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » table/for k,v pairs() question


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