View Single Post
09-03-20, 12:52 PM   #3
benots4
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 20
Originally Posted by Fizzlemizz View Post
The db being referred to is a saved variables table setup using AceDB. Strip off everything before the last dot and pretend like it's a simple variable.

Code:
max = AMine.db.profile.actionCnt
Code:
local actionCnt =  10

selectAction ={
      ...
      max = actionCnt
      ...
}

max = actionCnt doesn't throw an error so thats good, but it doesn't set max either. in the db actionCnt is 19 but max is set to 100 (default). I put a print (actionCnt) in the get function and I get a nil value error. but a print(AMine.db.profile.actionCnt) yields a proper 19
  Reply With Quote