throw vs the result
Dar Scott
dsc at swcp.com
Sun May 1 17:33:09 EDT 2005
On May 1, 2005, at 3:30 AM, Jan Schenkel wrote:
> I personally prefer the try-throw-catch trinity, as it
> makes for cleaner code than indented if-then-else
> structures.
If a library errors comes in only the result, then you can do this:
moveRobot robotName, plan
get the result
it it is not empty then throw it
Instant thrown errors.
Dar
--
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
A Sponsor of RevCon West
**********************************************
More information about the use-livecode
mailing list