Using return in a command script

Bob Sneidar bobsneidar at iotecdigital.com
Mon Oct 31 11:25:02 EDT 2016


Thanks Peter. Yes I do use the Dialog data regularly, but heretofore only when returning from a modal stack. Return provides a quick one liner to return a value or array of values, but again, I can just use properties, which works like a poor man's variable scoping.

Bob S


On Oct 28, 2016, at 11:33 , Peter M. Brigham <pmbrig at gmail.com<mailto:pmbrig at gmail.com>> wrote:

Keep in mind that you can use the dialogData to return values from command handlers, or function handlers for that matter:

  …
  set the dialogData to “false”
end myHandler

— Peter

Peter M. Brigham
pmbrig at gmail.com<mailto:pmbrig at gmail.com>



More information about the use-livecode mailing list