On Mar 22, 2012, at 11:33 AM, Jim Hurley wrote:
> 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?
Note that getting the customProp of an object where the property doesn't exist
will return <empty> but won't trigger any error. If you want to "catch" this
then don't use a try statement, do something like
put the myProperty of btn "x" into tProp
if tProp <> empty then
-- do something with the property
else
-- handle "error" here
end if
-- Peter
Peter M. Brigham
[email protected]
http://home.comcast.net/~pmbrig
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode