realbasic-nug
[Top] [All Lists]

Re: RBScript Trapping Multiple Compile Errors

To: realbasic-nug@lists.realsoftware.com
Subject: Re: RBScript Trapping Multiple Compile Errors
From: Paul Rodman <paul@ilanga.com>
Date: Mon, 30 Jun 2008 13:51:07 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <mailman.1.1214852402.1209.realbasic-nug@lists.realsoftware.com>
References: <mailman.1.1214852402.1209.realbasic-nug@lists.realsoftware.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Jun 30, 2008, at 12:00 , Scott Fortmann-Roe wrote:

Anyone have any suggestions for this?

On Sat, Jun 28, 2008 at 9:21 AM, Scott Fortmann-Roe <scottfr@gmail.com> wrote:
Hi,

When you run an RBscript, the CompilerError event is executed for each
error in the program. This is nice, but there is no indication of how
many errors there are so it is hard to trap them all in an elegant
manner. Does anyone have a way to trap all the errors and return them
all at once to an error handling function. So far the only way I can
think of doing something like this is very hackish and would need a
timer. Does anyone have something better?

Also, what is the status of the RuntimeError event. In the latest
version I tried--2008r2--I heard it was supposed to be fixed, but such
an error caused a ugly Runtime Error to occur in my app.

-Scott

I initialise some arrays as empty, call the Run method, and each time the CompileError event is called I append the error and line number to the arrays. When the Run method exists, I check to see if there are were any errors (and then flag all the error lines in Alex Restrepo's exceeding brilliant CustomEditField).

Paul Rodman


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>