Also I forgot the finally part

try
    -- some statements
catch theError
    -- do some stuff if there is an error
finally
    -- do some other stuff no matter what
end try

On Mar 22, 2012, at 9:22 AM, Jim Hurley wrote:

> Bob, 
> 
> Yes that would be fine, except that I get a compilation error at the line:
> 
>  catch theError, theNum
> 
> RR says:  (try: not a command), char 7
> 
> Jim
> 
> 
>> Bob Sneidar wrote:
> 
>> try
>>  put "foo" into myVar
>>  put the value of myVarr
>> catch theError, theNum
>>  -- breakpoint
>>  answer theNum & cr & line1 of theError as sheet
>>  exit to top
>> end try
>> 
>> Is that what you mean?
>> 
>> Bob
>> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to