Sam OZ
asked on
Get Count in a variable with 5 digits always
Hi Experts,
I am looking for a function to get following in VB.NET
I have to get a value to a string variable in a loop
For Myint = 1 to 10000
MyString should get value from MyInt
Next
But the rule is , it should always have 5 digits . That is ,
when Myint = 1 Mystring should be "00001"
Myint = 100 Mystring should be "00100"
...
I am looking for a function to get following in VB.NET
I have to get a value to a string variable in a loop
For Myint = 1 to 10000
MyString should get value from MyInt
Next
But the rule is , it should always have 5 digits . That is ,
when Myint = 1 Mystring should be "00001"
Myint = 100 Mystring should be "00100"
...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.