Code: Select all
etc
etc
--
strAnswer = fhMessageBox(" YES to complete action or NO to exit", "MB_YESNO")
if strAnswer == 'No' then
fhMessageBox("exiting with no actions")
goto done
end
etc
etc
more routines
etc
end
end
::done::
Code: Select all
etc
etc
--
strAnswer = fhMessageBox(" YES to complete action or NO to exit", "MB_YESNO")
if strAnswer == 'No' then
fhMessageBox("exiting with no actions")
goto done
end
etc
etc
more routines
etc
end
end
::done::
Code: Select all
if strAnswer == 'No' then
fhMessageBox("exiting with no actions")
else
-- do the action here
end
Code: Select all
if strAnswer == 'Yes' then
-- do the action here
end
Code: Select all
if strAnswer == 'No' then
error("exiting with no actions")
end
-- do the action here
Code: Select all
strAnswer = fhMessageBox(" YES to complete action or NO to exit", "MB_YESNO")
if strAnswer == 'No' then
fhMessageBox("exiting with no actions")
return
end
print('do stuff')
It won't work if FH5/6 because goto isn't supported in Lua 5.1, but that's unlikely to be a problem for you.
That is interesting, I noticed when I was searching hereColeValleyGirl wrote: ↑21 Mar 2022 19:04 It won't work if FH5/6 because goto isn't supported in Lua 5.1, but that's unlikely to be a problem for you.