Project

General

Profile

Actions

Bug #522

closed

Procedures called by Touch On Change don't run properly

Added by David Baldwin about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
09/29/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

It seems procedures called by Touch On Change are not behaving as they should. When I try to use Goto Label from an If statement, the program just jumps to the next line after end if, not the label. Same happens when I try to Pop Proc. I've put together a demontration:-

Touch On Change "Direction_Control"
// Direct Procedure call - Only first line is printed, so Goto works
Direction_Control
// Now call from Touch On Change - Mouse click or touch
Repeat
Wait vbl
until
Procedure Direction_Control[X,Y,LASTX,LASTY,STATE]
A=10
locate 20,10 : Print "First Line, Goto Done next"
If A=10
Goto Done
End if
Locate 20,12 : Print "Second Line,Pop Proc Next"
If A=10 then Pop Proc
Locate 20,14 : Print "Third Line, none of these lines should be printed"
Done:
End Proc

Actions

Also available in: Atom PDF