Is it possible to measure the width of a line of text saved into a variable.
strData = "XXXXXX"
length = 12
strData = "iiiiii"
length = 4
Any font can be used as the data isn't going to be output on screen.
I have a csv file holding various names and addresss, I am wanting to find the longest of each of the address fields. I currently have a program that counts the number of characters in a field but I am after the longest in size as well.
XXXX might less characters than iiiiii but it is longer.
Cheers for any help