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

Tim Jones tolistim at me.com
Thu Mar 22 19:30:15 EDT 2012


Or - this can be applied to a night out clubbing -

try
    put myBestPickupLine into myMouth
catch theResponse
   If theResponse is not negative
	-- Oh yeah!
	set luckynight to true
   else
	put wittingComback into myMouth
	move body to new location
finally
    if not luckynight then goHomeAlone
end try

Sorry, it's just too obvious…

Tim





More information about the use-livecode mailing list