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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I right justify amounts in a combo or list box?

Status
Not open for further replies.

EDsedlar

Programmer
Jun 7, 2000
4
0
0
US
Why do numeric fields in a column of a list or combo box appear to be left justified with leading spaces or centered?<br><br>Is it just me or would numbers look better if they were right justified inside the column.<br><br>Is there anyway to setup a combo or list box that looks good in columns?
 
Hi again Edsedlar,<br><br>&nbsp;Sounds like this question was posted before the 'Count of pixels question'.<br>&nbsp;Convert your numeric values to a specific length using the STR() function (10 by default). Add that to the listbox and they will be aligned. (That is, if you're using a fixed length font or some text alignment routine like I mentioned in the other question).<br><br>Jon<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top