Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,858 of 10,840    |
|    Dean Earley to Johnny    |
|    Re: Question about format    |
|    23 Jan 06 16:26:16    |
      From: dean.earley@icode.co.uk              Johnny wrote:       > Hi all, I have a question,       > I'am writing increment number in a file wich reset after reaching 15.       >       > I have code like below.       >       > Dim counter       >       > Counter =1       >       > and at the end of the input i have the line       > counter = counter +1       >       > All is fine so far but my output now is like below:       >       > 1       > 2       >       > What I want is a leading zero that the output will be as follow:       >       > 01       > 02              Format() with the string of "00".       Check the help for what it means and other format characters              --       Dean Earley (dean.earley@icode.co.uk)       i-Catcher Development Team              iCode Systems              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca