try
addNew()
catch err
put "You got error: " & err
end try
I know the docs are hopeless.
It's nothing to do with the "try", you can't call a function without
using a "get" or "put", so it should be:
get addNew()
or
put addNew() into xxx
Hope this Helps
All the Best
Dave
On 5 Apr 2007, at 14:49, Len Morgan wrote:
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
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution