Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to align a list of values on decimal point?

Status
Not open for further replies.

johnk

MIS
Jun 3, 1999
217
US
I need to display (in a screen control, say a multiline text box) something like:<br>
<br>
On Hand: 125.75<br>
Customer Orders: 87.25<br>
<br>
Available: 38.50<br>
<br>
I have the same problem here showing what I want. The decimal points don't align vertically.<br>
<br>
Tabs won't do it - note the difference in number of characters. Oh yes, we want to also use variable width font.<br>
<br>
Any ideas?
 
NOPE<br>
You need to use a proportional font such as &quot;Courier&quot;<br>
All of its characters use the same space whether it be a . (period) or a &quot;W&quot; <br>
most all Windows fonts are NOT proportional.<br>
<br>
And unfortunately only Courier IS<br>
<br>

 
Unless you want to go to something like DBGrid where you can specify each cell's format
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top