Help on Goto
El Paisa
Posts: 375
I really appreciate help to do this in spin,
·· Case K==$40
········ On Btn goto Btn1,Btn2,Btn3......Btnn
For each K, there is a Btn range from 0....N
·· Case K==$40
········ On Btn goto Btn1,Btn2,Btn3......Btnn
For each K, there is a Btn range from 0....N
Comments
case k
·· $40 : case Btn
··············· Btn1 : K == $40 and Btn == Btn
················Btn2 :
··············· Btn3 :
·· other :· do other stuff if K <> $40
somthing·like this nested case if your looking for 2 things ,irst k = $40 and then which button ?
of course you could use a if statment for the outside case if your only looking for $40 before checking for btn states
dan
You'd have a whole bunch of such entries, search them with a little routine:
You could add range checking on the value of Btn in the line after the "if". You could substitute some other default action if K isn't in the table. You'd follow a call to this with a CASE statement for the actions