Code: Select all
#SingleInstance
#Warn
goto S2
return
S2:
SetTimer y:=displayMsg3(3333), -1
displayMsg3(message)
{
local y
y:= Func("displayMsg1") ; closure
return y
displayMsg1()
{
(message)
}
}
return
No error if I comment out goto S2 (and Return) or use gosubError: Cannot jump from inside a function to outside.
Line#
---> 004: Goto "S2"
005: Return
008: SetTimer(y:=displayMsg3(3333), -1)
011: {
013: y := Func("displayMsg1")
014: Return y
017: {
018: (message)
The program will exit.
btw love the new dark theme on the forum