Need an example of how to use "try" and "catch"

Jim Hurley jhurley0305 at sbcglobal.net
Thu Mar 22 11:33:06 EDT 2012


The dictionary needs an example of how the "try" command is used to catch an error.

Anyone have an illustration? 

For example, suppose one wanted to catch an error in the statement:

  put the {some built-in property of an object] of button "soAndso" into tProp

Where the built in property may not exist.How would one catch the error and perhaps proceed on the basis of the particular error message?

Thanks,

Jim



More information about the use-livecode mailing list