If the length varies, you will have to use variables in your format strings.
This will give you a string of integers separated by spaces with a trailing space after the last value ("1 2 3 "):
Fmt( TargetString, "%s<%*d[j1] ", arrayLength, dataArray );
This will give you a string of integers separated by spaces with no trailing space after the last value ("1 2 3"):
Fmt( TargetString, "%s<%*d[j1] %d", arrayLength - 1, dataArray, dataArray[arrayLength] );
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on
Vision, a tool for understanding your test data. Visit me at
www.cncsoftwaresolutions.com