realbasic-nug
[Top] [All Lists]

Repost: RBscrpt runtimeError Event not evoked

To: realbasic-nug at lists dot realsoftware dot com
Subject: Repost: RBscrpt runtimeError Event not evoked
From: Shannon Love <shannonlove at sbcglobal dot net>
Date: Fri, 30 Sep 2005 10:17:34 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; s=sbc01; d=sbcglobal.net; c=nofws; q=dns; h=mime-version:content-transfer-encoding:message-id: content-type:to:from:subject:date:x-mailer; b=kOVk223tsYkN7Py3Gyo1KqNAy2aOvH3lJQPu1145/isk/8B2xy7qShErjSJrnbVtY M2UMaqorR0KWKIbiW6DDg==
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>

<Prev in Thread] Current Thread [Next in Thread>
  • Repost: RBscrpt runtimeError Event not evoked, Shannon Love <=