Posted 03 April 2014 - 02:11 AM
Hello all below is a description of the problem I am having and then the code I am using.
Desc: I made a code for touchscreen buttons that will run functions when the button is clicked. The code works as code and even works as an API as long as the functions called are in the API but not the program itself. Does anyone know how to read the functions from the program when called and not the API, or can push me to some reading material?
button API: http://pastebin.com/dqbdbug2
test program: http://pastebin.com/yzakf5qq
error after "button 2" is clicked running testapi: butapi:134: attempt to call nil (it does not see the function as its in testapi and not within butapi, I need to be able to call from testapi)
mind you I do not get this error if I hit button 1 because that function is in the API code as a test function
Edit: I just noticed that there is an error in my code for setting the next button area, it looks for hMax > h when it should say wMax > w, I am currently adding auto assign of multiple pages and found/fixed this issue. However above error is still a problem.
Desc: I made a code for touchscreen buttons that will run functions when the button is clicked. The code works as code and even works as an API as long as the functions called are in the API but not the program itself. Does anyone know how to read the functions from the program when called and not the API, or can push me to some reading material?
button API: http://pastebin.com/dqbdbug2
test program: http://pastebin.com/yzakf5qq
error after "button 2" is clicked running testapi: butapi:134: attempt to call nil (it does not see the function as its in testapi and not within butapi, I need to be able to call from testapi)
mind you I do not get this error if I hit button 1 because that function is in the API code as a test function
Edit: I just noticed that there is an error in my code for setting the next button area, it looks for hMax > h when it should say wMax > w, I am currently adding auto assign of multiple pages and found/fixed this issue. However above error is still a problem.
Edited on 03 April 2014 - 02:12 AM