Link to home
Start Free TrialLog in
Avatar of Sam OZ
Sam OZFlag for Australia

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"
               ...
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial