[futurebasic] Re: [FB] re: Number of lines in BOX?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Wed, 30 Dec 1998 21:37:33 -0600
Bowerbird wrote:

> put the text into an edit field of the right width,
> an edit field that is located outside the window.
> 
> then test for the height of the edit field
> to calculate the number of lines it contains.

The Mac does that for ya.  There is an item in the TextEdit record which
already indicates the number of lines in the edit field.

TEHndl&=TEHANDLE(theFld)
numLines% = TEHndl&..teNLines%

- Rick