field calculations

yves COPPE yvescoppe at
Tue May 21 11:35:01 EDT 2002

>What is the proper or best way of calculating the number of lines 
>that are in the visible part of a field?  In other words, if I put 
>"1" &cr& "2" &cr& "3"... etc. into the field, what would be the 
>highest number visible in a non-scrolling field?
>A first guess would be the (height of the field)/(textHeight of the 
>field), but what about margins and borders?
>What about ((height of the field)-(topMargin of the 
>field)-(bottomMargin of the field))/(textHeight of the field)?
>-- D

check the formattedHeight in the dictionary.




Email : yvescoppe at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the use-livecode mailing list