Try/Catch Problem

Len Morgan len-morgan at crcom.net
Thu Apr 5 09:49:59 EDT 2007


I'm trying to do a simple error trap:

try
    addNew()
catch err
   put "You got error: " & err
end try

This script won't compile and it says the error is the "catch" statement.

The docs say that try has to be on a line by itself (which I've done).  
The docs give NO EXAMPLE CODE so I can't see from them what I'm doing wrong.

Any ideas or pointers to where I can look?

Thanks,

Len Morgan




More information about the use-livecode mailing list