value of my variable is 1, i want 001

question is about vbscript, but i cannot find a forum about it

value of my variable is 1, i want to format it as 001
please help
thanks

 



Answer this question

value of my variable is 1, i want 001

  • keithv

    hi,

    you can do something like this

    dim i as integer = 1

    Console.WriteLine(i.ToString("d3"))

    hope this helps



  • Mike D

    thanks

    i've found solution yet


  • value of my variable is 1, i want 001