VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For exa

by TerranRiCH (5 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For example, if you need a set of 5-digit numbers

Rate Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For exa



    FillWithZeros = String(LengthDesired - Len(Trim(Str(NumberToUse))), "0") + Trim(Str(NumberToUse))
End Function

Download this snippet    Add to My Saved Code

Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For exa Comments

No comments have been posted about Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For exa. Why not be the first to post a comment about Take a number and insert any amount of 0's (zeroes) to fill up a certain amount of digits. (For exa.

Post your comment

Subject:
Message:
0/1000 characters