|
-
Feb 9th, 2000, 08:13 AM
#1
Thread Starter
New Member
I am printing an invoice through Printer.Print commands. Is there an easy way to line up the .'s in a column of dollar values? I know I could create a function which would pad the variables(that hold the dollar values) so they are all the same length thus forcing dots to line up but is there a simpler way.
My code goes like this:
Printer.Print tab(32); format(sngDollarAmount1, "Currency")
Printer.Print tab(32); format(sngDollarAmount2, "Currency")
and output is like this:
$100.00
$10.00
instead of what I would like:
$100.00
$ 10.00
I tried to define my own formats. I know in COBOL there is a symbol for inserting leading spaces for output but is there one in VB 5? I tried @ but it created junk.
Thanks
[This message has been edited by Dean Murray (edited 02-09-2000).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|