Hello,
This has been killing me and I'm starting to think it's something other than my code that is causing the problem.
I have a call to a function like so
if leftkey() = 1 then action(1,status)
This calls the action function which is the following
FUNCTION action(which_key,state)
print which_key, ", ",state
IF whick_key = 1 and state = 1
print "In The Statement"
xpos#(1) = xpos#(1) - .5
moving = 1
set cursor 1,55
print "MOVING LEFT"
ENDIF
END FUNCTION
At this point, what is inside the IF statement isn't important I just can't seem to get in to it. When I run the code the screen prints 1,1 leading me to believe that which_key = 1 and state = 1.
So why will it not execute the statements inside the IF / ENDIF? I've tried replacing the print statement with an END so the program would terminate, but it never seems to reach that point.
Any ideas?