You could also do it with FTOA, only then you will have to specify a floating format - so it has to be a F or D format. If the input field is itself not a F or D field, it will be converted to F or D before processing. Consider this code:
DEFINE FILE PRIMARY
BAT_ID1/A6=FTOA(BAT_ID, '(F6)', 'A6');
END
TABLE FILE PRIMARY
PRINT BAT_ID
BAT_ID1
END
This will also provide the correct result.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
February 11, 2011, 07:54 AM
JRLewis
I believe this will also work.
DEFINE FILE PRIMARY
BAT_ID1/I6=BAT_ID;
BAT_IDA/A6=EDIT(BAT_ID1);
END
TABLE FILE PRIMARY
PRINT BAT_ID
BAT_IDA
END
WebFOCUS 8
February 11, 2011, 10:28 AM
Carlf
All 3 of these solutions work. Thanks for the help.
Carl
FOCUS 7.1.6 on Windows XP Output: Excel, HTML, PDF