Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Justification
Message
 
To
19/10/1999 19:42:24
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00278557
Message ID:
00278564
Views:
16
>I am coding the following to print within VB 5.0 :
>
>Printer.Print Format(datPrimaryRS.Recordset.Fields("SubTotal"), "$##,##0.00")
>
>How can I right justify the amounts when printing. Presently they are left justified.

It can be hard to right justify text depending on the font you use because some characters take less space than others.

But you can always try this:

right( space(10) & Format(1.23, "$##,##0.00"),10)
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform