Hi All,
I generated a fixed position text file.
I have a field value of size 10 but the field size is fixed as 15, filling the remaining 5 spaces of the field with zeros now its empty spaces.
How to achieve it.
f.outFieldDelimiter('');
f.outRecordDelimiter('\r\n');
f.write(strLfix("testing",15));
f.write();

How to replace the space with zeros?
Thank you
You can use string functions to check the length of the value, and add leading zeros if needed. For example, strLen and strIns could be used to achieve the desired outcome.
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156