Performance Problem with large file

Jim Ault JimAultWins at yahoo.com
Thu Feb 22 12:33:03 EST 2007


On 2/22/07 9:05 AM, "Len Morgan" <len-morgan at crcom.net> wrote:

> Len Morgan wrote:
> I guess the other option I have if I want to "simulate" the field being
> updated on the fly would be to figure out how many lines of text are
> displayed, update the TEXT FIELD that many lines only (while creating a
> variable with the "real" data in it), then when it's done, putting the
> variable into the text field all at once.

One approach that may work for determining the amount of text to show is:

put empty into fld tryOnForSize
repeat for each line LNN of veryLargeTextBlock
  put LNN & cr after fld tryOnForSize
  get the formattedheight of fld tryOnForSize
  if it  > the height of fld tryOnForSize then exit repeat
end repeat
put line 1 to -2 of fld tryOnForSize into fld vizDisplayFld

Jim Ault
Las Vegas





More information about the use-livecode mailing list