That's what immediately came to my mind on this also.
RSTYLE does a nice job of telling you about these errors so your code will run 
well.
It even add the obligatory RETURN automatically.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
From: [email protected] [mailto:[email protected]] On Behalf Of Bill Downall
Sent: Tuesday, March 26, 2013 12:14 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: -ERROR- Too many commands in WHILEloop/WHILEbufferfull 
( 218)

Ajay,

I'm not sure. Sometimes that message doesn't really mean what it says, but 
something else is causing a buffer overrun within a WHILE loop.

In the editor,  I would run RSTYLE (Ctrl-Y) against each of the command files 
that you execute with RUN commands, and make sure there are no structural 
errors and that every quote or paren or IF or WHILE that is opened is also 
closed, and that there is a RETURN at the end of every command file.

Bill


On Tue, Mar 26, 2013 at 1:08 PM, Ajay Sanghvi 
<[email protected]<mailto:[email protected]>> wrote:
Hi Bill
Thanks for the quick feedback.
I looked at my code and the loop is not really that big, but within the loop I 
uses many RUN commands which have their own loops. Do they all get added into 
the same buffer space? is that the reason for this error?

Ajay

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of Bill Downall
Sent: Tuesday, March 26, 2013 12:53 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: -ERROR- Too many commands in WHILE loop/WHILE 
bufferfull ( 218)

Hi, Ajay!

The simplest way to get around this error with a huge WHILE loop is to change 
the structure to a GOTO/LABEL structure:

From

WHILE a <> b THEN
...
ENDWHILE

To:

LABEL lbBegin
IF a = b THEN
  GOTO lbEnd
ENDIF
...

GOTO lbBegin
LABEL lbEnd

Bill

On Tue, Mar 26, 2013 at 12:39 PM, Ajay Sanghvi 
<[email protected]<mailto:[email protected]>> wrote:
I need help understanding the following error message. I have never
encountered this error before.



-ERROR- Too many commands in WHILE loop/WHILE buffer full ( 218)



Is there a setting that will allow me to increase the buffer size?





Ajay Sanghvi
Vice President

T (973) 748 8980<tel:%28973%29%20748%208980> - EXT 833
F (973) 680 9618<tel:%28973%29%20680%209618>
E 
[email protected]<mailto:[email protected]><Ajay%20Sanghvi%0bVice%20President%0b%0bT%20(973)%20748%208980%20-%20EXT%20833%0bF%20(973)%20680%209618%0be%[email protected]<mailto:20680%25209618%250be%[email protected]>>

[image: Description: Description: Description:
cid:[email protected]] <http://www.berjeinc.com/>


Reply via email to