bol
07-15-2006, 12:51 AM
Hi all.
I would like to make a counter which simply outputs a number, which I can use in a string. it should be zero based and start at 000001 for the first batch of numbers and 111001 for the second batch of numbers
The only requirement is that the output of the counter maintain six digits as they are to be used to reference file names all of which are six digits long.
so the numbers should go ...000009, 000010, 000011... etc
so far I can only make it go ...000009, 0000010
It's annoying. is there a quick way of doing this?
-edit - the only way I can get it working is to add the ones or zeros on as a string in front of the actual number... but this can't be the correct way to do it.
I would like to make a counter which simply outputs a number, which I can use in a string. it should be zero based and start at 000001 for the first batch of numbers and 111001 for the second batch of numbers
The only requirement is that the output of the counter maintain six digits as they are to be used to reference file names all of which are six digits long.
so the numbers should go ...000009, 000010, 000011... etc
so far I can only make it go ...000009, 0000010
It's annoying. is there a quick way of doing this?
-edit - the only way I can get it working is to add the ones or zeros on as a string in front of the actual number... but this can't be the correct way to do it.