[futurebasic] Re: [FB] Error Limit of 32k for Local Variables

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sat, 4 Sep 2004 18:27:10 -0400
On Saturday, September 4, 2004, at 05:45  PM, Brian Heibert wrote:

> Al Stafferri Jr. told me to put this in my run menu code
> //runcode$ = EDIT$(1)
> DIM runcodeLines$(500) I did but it now says
> Error: There is a Limit of 32k bytes for Local variables.
> in file TBASIC.proj:TBASIC.MAIN at line 200 in doMenus
> •DIM runcodeLines$(500)•
>
> Brian

500 X 256 bytes  (Default string of 255 + length byte) = 128K local 
variable space requested for a 32K max.

The max out could occur at about Dim runcodeLine$(125)  , you've 
exceeded that by a large amount.

Dim as a global, or if you can, limit the size to your maximum line 
width, if that's smaller, like:

Dim 64 runcodeLine$(100)  or something like that.

rc