number of Lines of a textfield w drawstring

ok, everybody.

I really dont want to heat up the discussion about reports - because working with drawstring is, when the structure of what to print is well-organized, a good thing. OK you have to adjust some more things like font, fontheight, line-spacing but this is a “one-time-doing”.

Still there is one question to me: if I have a textfield or area which doesnt fit into one line, I have to adjust the linenumber manually. Therefore I have to count out how mny lines are needed for my textarea.

Is there a function I didnt saw till now???

Thanks,

Christian

https://documentation.xojo.com/index.php/Graphics.StringHeight