Hello.
I'm trying to name 1,000,000 text files with numbers, while still keeping their names alphabetical for sorting.
I want the names to appear as follows: Txt_0000001, Txt_0000002, Txt_0000003, etc, all the way up to Txt_0999998, Txt_0999999, Txt_1000000.
The following is the working code I've written for the task thus far:
The above code works with the exception of one problem...![]()
Please Login or Register to view this content.
When lWordNumber is equal to any number that ends in a zero, that zero is dropped... I want that zero to stay on so that alphabetizing results in: 0000009, 0000010, 0000011, and not 0000009, 000001, 0000011. As the latter clearly won't alphabetize...
So how can i change the following line of code so that the zero stays on:
Thanks for any and all help!!!![]()
Please Login or Register to view this content.
Bookmarks