#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    65
    Rep Power
    15

    Function similar to C's PRINTF


    Hello,

    Is there a VBScript function similar to printf in C? If not, I'd appreciate any ideas on how to format the text for printing for VBScript.

    Thanks!
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,759
    Rep Power
    9397
    How close does it have to be? Do you just want placeholders and typing (like %s and %d) or do you need formatting and such too (like %.2f and %05d)?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    65
    Rep Power
    15
    Originally Posted by requinix
    How close does it have to be? Do you just want placeholders and typing (like %s and %d) or do you need formatting and such too (like %.2f and %05d)?
    I need formatting...thanks
  6. #4
  7. No Profile Picture
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    This search may have something useful

    http://www.google.com/search?q=vbscr...ient=firefox-a
    ======
    Doug G
    ======
    It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    65
    Rep Power
    15
    Originally Posted by Doug G
    This search may have something useful

    http://www.google.com/search?q=vbscr...ient=firefox-a
    Saw that but was looking for more spoon-feeding than that...thanks anyways!

IMN logo majestic logo threadwatch logo seochat tools logo