Greetings,
Sorry for the repost but I completely mangled the original.
I am evaluating RealBasic as a platform for developing a scriptable
application. I want the user to be able to type in small scripts at
will and run them. For this to work, the application must be able to
handle all errors generated by the RBscripts.
I created a super-simple program that takes a string from a EditField
and sets that to the source of the script. The print, compilerError
and runtime error all output via System.debuglog.
The print and compiler error events work as expected. This script
provokes a compiler error logged to the console:
dim s as string
s=5
However, nothing seems to evoke the runtimeError event for the
script. This script:
dim a(2) as integer
a(3)=4
causes an OutOfBounds exception to occur as expected but the
exception is raised by the function that calls the script, not the
script object itself. The runtimeError event is never called.
Do I have to catch the exception within the script to trigger the
runtimeError event? If so, how? RBScripts do not appear to use the
exception statements.
I am running:
RealBasic 2005 demo
MacOS X 10.3.7
(Could this be a result of running only in IDE or the demo version?)
Thanks,
Shannon Love
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|