field calculations

yves COPPE yvescoppe at skynet.be
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.

cheers.

-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020521/1a21168d/attachment.html>


More information about the use-livecode mailing list