I'm trying to get a lookup table to work, but something odd keeps happening. What I'm trying to do is accept some key input and find the location of the key code within the array. Here's some example code:
[0123456789ABCDEF36]->Str1
...
getkey->K
For(A,0,8
If K=e{Str1+A}
Goto BRK
End
End
Lbl BRK
where the e is scientific notation E.
This should store the array offset in A, but it doesn't seem to be working. For example, if you were to press 2nd (keycode=54), then it would return 8 in A.