Need an example of how to use "try" and "catch"
Jim Hurley
jhurley0305 at sbcglobal.net
Thu Mar 22 13:21:56 EDT 2012
Thanks Peter.
The problem now is what do these bloody error numbers translate into.
Is the a list somewhere?
When I try:
on mouseUP
try
put the cantdelete of me into temp
catch tErr
--- if tErr is ??????
end try
end mouseUP
I get an error of 348,0,0
Jim
> Peter Brigham wrote:
>
> The syntax for the try construction is
>
> try
> <command here>
> catch tError
> <other commands here>
> end try
>
> and the error number is put into the variable tError. So the <other commands> could be, eg,
>
> if tError = 314 then
> answer "range error in loading array"
> else if ...
> etc.
> end if
>
> -- Peter
>
> Peter M. Brigham
>
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig
>
More information about the use-livecode
mailing list