Jump to content
Sign in to follow this  
ahab

keep leading 0

Recommended Posts

$foo = @MDAY

$bar = @MDAY + 01

returns...

$foo = 03

$bar = 4

I want $bar to be 04, not just 4... :D

Share this post


Link to post
Share on other sites

.. or ..

$foo = @MDAY
    $bar = StringRight(@MDAY + 101,2)
    msgbox (0,"",$bar)

Share this post


Link to post
Share on other sites

.. or ..

$foo = @MDAY
    $bar = StringRight(@MDAY + 101,2)
    msgbox (0,"",$bar)
Keep in mind ahab whichever way you do it (nice one trids I never tried that before I'm too new) that it will become a string not a number so save that function for last

Rick


Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...