Thanks. I did exactly as you described, except for changing all the function names but I will. However max is still not set. I made the names unique and removed the AMine.db.profiles . Still works fine except max is still not set.
Code:
zackselectItem ={
name = "ItemSelector",
desc = "Pick the entry to display",
type = "range",
max = itemsCnt,
min = 1,
step = 1,
set = function (info, val) if itemsCnt ~= nil then if val <= itemsCnt then itemPicker = val end end end,
get = function(info) print( itemsCnt )if itemPicker ~= nil and itemPicker <= itemsCnt then return itemPicker
else itemPicker = itemsCnt end
end,
},