Using return in a command script

Bob Sneidar bobsneidar at iotecdigital.com
Thu Oct 27 10:31:18 EDT 2016


Thanks Monte. I've come to see that returning a value from a built in message handler is a no go.

Bob S


On Oct 26, 2016, at 16:36 , Monte Goulding <monte at appisle.net<mailto:monte at appisle.net>> wrote:

OK, just to make sure I understand you I’ll summarise in code:

on openCard
  go card “database setup”
  if the result is false then
     — database setup failed
  end if
end openCard

— database setup card script
on openCard
  — do stuff
  return stuffFailed
end openCard

If ^ is what you are doing then no it won’t work. The result after the go command is an error message if it failed rather than anything returned by openCard.

Cheers

Monte



More information about the use-livecode mailing list