I'm making a listbox and am having some troubles here. Suppose I have 2 or more types of info in the box. First column could be "Randolph" or "Bob". Second column could be his age. I'd add name$ and age$ together with a couple of spaces inbetween.
When using a font like Courier New with a constant width, "Bob" can be "Bob " and the ages would line up perfectly. However, I really want to use the New Times Roman font, which has the different width letters. Right now, I'm writing an algorithm to calculate how many spaces to add to the end of the first string to make the next column line up. Is there an easier way?
Thanks from a newbie! Todd
When using a font like Courier New with a constant width, "Bob" can be "Bob " and the ages would line up perfectly. However, I really want to use the New Times Roman font, which has the different width letters. Right now, I'm writing an algorithm to calculate how many spaces to add to the end of the first string to make the next column line up. Is there an easier way?
Thanks from a newbie! Todd

Comment