Text Reader and label height


Well-Known Member
Licensed User
Longtime User
Hello, I am opening a txt with Text Reader and setting a variable (txt) to the contents (via ReadAll). My question is how do I determine the height of all of the lines of text?
Right now I set Label = txt, and if Label.height = 100%y some of the text gets cut off if it goes off the screen. I can use Label.height = 1000dip but then I get a bunch of blank space. Is there a way to set the Label height to the exact height it should be according to the contents of the txt file?