Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Justification
Message
 
À
19/10/1999 19:42:24
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00278557
Message ID:
00278564
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform