Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: StrFixLeft
For j=8 to 11 k = StrFixLeft(j, "0", 2) Nextget 08 09 10 11 <--as expected
For j=8 to 11 k = StrFixLeft(j, "000", 2) Nextget 0008 0009 10 11 <--- huh???
To pad to 4 characters you should use this code:
For j = 8 To 11 k = StrFixLeft(j,"0",4) Next
Article ID: W17410
File Created: 2008:04:10:15:09:38
Last Updated: 2008:04:10:15:09:38