Sign in to follow this  
Followers 0
ahab

keep leading 0

5 posts in this topic

$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



$foo = @MDAY

$bar = @MDAY + 01

returns...

$foo = 03

$bar = 4

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

$val = 3.5

$output = StringFormat("%.2f", $val)

MsgBox(4096, "", $output)

Got this from Jon

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

.. 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  
Followers 0