How can i evaluated text width?
Printable View
How can i evaluated text width?
Use Len("YourText")
Vlad
I don't need the length of the string, i need the lengt of the string in pixels or twips
Hi....
There are some function called textwidth and textheight. But before you use them, ypu have to tell computer about the font and font size so that textwidth and textheight could be calculated. Given below is a small example of using them.
...
...
Printer.FontBold = true
Printer.FontSize = 16
Msg = "We all are computer professioanals let us help each other."
textWidth = Printer.TextWidth(Msg)
...
...
...
textwidth and textheight work with printer, form and picture object.
I hope this answer the query.
Santulan