Ok. so math was never my strong suit. Or maybe just my dumbness is showing again.... but
I need to save the index value of a TCollectionItem index value to a string of a preset length (so I can later sort the values after reading from stream).
What is the easiest way to ensure that the string is "N" characters long.
indexValue = 5;
desired string is: 00000005.
Is there some trick I can use, or do I have to manually pad the string with 0s after testing length? I know that will work, but I have this nagging feeling I am missing the obvious.