Results 1 to 3 of 3

Thread: Printing an extra space - Should I Mask?

  1. #1

    Thread Starter
    Member JPRoy392's Avatar
    Join Date
    Aug 2000
    Posts
    50

    Question

    I am trying to print a number with a dollar sign in front ($). On the hardcopy (paper), it is always putting a space between the number and the dollar sign. If I mask, how? Here is my code:

    Code:
    dim iLine as Integer
    
    
    
    Printer.Print "$"; iLine
    Output (paper):
    $ 2

    I want:
    $2.00

    thank you


    Jim

    "...head is all empty and I don't care..."

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    dim iLine as Integer

    Printer.Print format(iLine, "$####.00")

  3. #3

    Thread Starter
    Member JPRoy392's Avatar
    Join Date
    Aug 2000
    Posts
    50

    Talking

    Thanks Barrk, that worked!
    Jim

    "...head is all empty and I don't care..."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width