I have to print out some PDFs for a project at work. Is there way to provide dynamic padding, IE. not using a code hard-coded in the format string. But instead based on the count of a List.
Ex.
If my list is 1000 elements long, I want to have this:
Part_0001_Filename.pdf... Part_1000_Filename.pdf
And if my list is say 500 elements long, I want to have this formatting:
Part_001_Filename.pdf... Part_500_Filename.PDF
The reason for this is how Windows orders file names. It sorts them alphabetically left-to-right or right-to-left, So I must use the leading zero, otherwise the ordering in the folder is messed up.