|
-
Aug 19th, 2008, 10:56 PM
#1
Thread Starter
Junior Member
[RESOLVED] padding zeroes for integers or strings
Good day.... I am trying to pad zeroes to a 5 digit ID number..
instead of 123, 4356, 78995, I would like to see 00123, 04356, 78995
Below doesn't seem to work:
My_String = SPrintF("%5d", xvalue)
or
MyString = String$((5 - Len (str$(xvalue))), "0") & str$(xvalue)
Thanks in advance,,,,,
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
|