[futurebasic] 32K EDIT FIELD limitation

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2001 : Group Archive : Group : All Groups

From: Ken Shmidheiser <k.shmidheiser@...>
Date: Thu, 7 Jun 2001 19:14:33 -0600
Now that we have had 2 gig containers, does anyone have an idea if or 
when the 32,767-byte EDIT FIELD limitation will be broken?

In a world where processors have broken a gigahertz and drives are 
approaching terabytes, it amazes me that a mainstay of Mac programs-- 
the EDIT FIELD-- is still limited to six typewritten pages of text.

I'm frustrated because my attempts to use the Waste engine have failed.

I have written a program that calculates an amortization table 
appending the results to a container which is then dumped into a 
scrolling EDIT FIELD. (If anyone wants to look at the prototype code, 
e-mail me.) I now face the problem of trying to truncate the overflow 
when the EF exceeds 32K. Even if I solve that, I'm stuck with trying 
to print the output. (I currently use FN printStyledEditField( 
fldHndl& ) borrowed from PG.)

Another thing, in an EDIT FIELD I can insert a line anywhere I want with:
EDIT$( efNum, lineNum )

Is there a way to do this with containers. I amd enjoying the 
Container += string$ for appending, but I no of know way to add text 
other than by appending it to the end.

Any thoughts... or at least commiseration?

Ken