View Single Post
12-27-17, 01:33 PM   #5
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Thanks again for your replies, I realized that I should stop asking questions when I am tired, They make less sense to everyone.

I may have not wrote the addon correctly, it works sort of. Here are more questions that hopefully will set off the light bulb above my head. I really have tried Google, but I welcome links to the appropriate topic.

1. How could I replace the nil value in loaded with a string that a table would like for this code? In the event the addon was not loaded.
Lua Code:
  1. loaded, finished = IsAddOnLoaded(i)
  2. AddonListDB[i] = {title,loaded}

2. I've tried a lot of different methods to set labels for table entries, with no luck. What am I missing so that I could have something like this:
Lua Code:
  1. {[name] = "Addon Name",
  2. [loaded] = "Addon Loaded"}

3. It has dawned on me that I might need to use the local saved variable instead of the one listed in the .TOC. This line seems essential.
Lua Code:
  1. addonlistdb = AddonListDB

4. Finally, is there any advantage to using Lua table methods like table.insert versus savedvariable[i] = "something"?
__________________
Author of JWExpBar and JWRepBar.
  Reply With Quote