FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM
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