Constructed a working tutorial project then tried to build something of my own and am having trouble. After 90 minutes hacking at it and reading, it is now time to go to work so I humbly ask for assistance.
Project: Simple in game calculator form to take entered values and give a DKP estimate based on a modifuied Zero Sum formula.
LUA Code (with line numbers inserted for easy referral):
Code:
5 local AdjUnits, Units, UnitsBox, Seed, SeedBox;
6
7 UnitsBox = getglobal("DKP2CalcForm".."Units".."Edit");
8 Units = UnitsBox:GetNumber();
Code explanation:
Where DKP2CalcFormUnits is a single line editbox. This edit box has a positive integer value when function is called. Units should be set to the numeric value of UnitsBox
Error Message:
Recieving error on line 8 "attempt to index local 'UnitsBox' (a nil value)"