Thank you exolent! Great code, had to change one line of your code, but implemented works exactly as I wanted. Strange that I could not do that with format. Hmm could've sworn I had done that before, but that is alright.
Thank you all!
----
PS change
Code:
copyc( szOutput, iLen, 0 );
to
Code:
copyc( szOutput, iLen, "", 0 );
__________________