Here's an example using the CAR file.
Look at the defined field N4_TEXT. Is that what you want?
-*-------------------------------------------------------
DEFINE FILE CAR
T_KEY/I3 WITH MODEL = T_KEY + 1;
-*
T_TEXT/A50 = DECODE T_KEY (
1 'Column1Column2Column3Column4'
2 'Column1 Column3Column4'
3 'Column1Column2Column3 '
4 'Column1 Column4'
5 ' Column2Column3Column4'
6 ' Column4'
7 ' '
8 ' Column3Column4'
ELSE '');
-*
T_COL1/A7 = EDIT(T_TEXT,'9999999');
T_COL2/A7 = EDIT(T_TEXT,'$$$$$$$9999999');
T_COL3/A7 = EDIT(T_TEXT,'$$$$$$$$$$$$$$9999999');
T_COL4/A7 = EDIT(T_TEXT,'$$$$$$$$$$$$$$$$$$$$$9999999');
-*
N1_TEXT/A07 = IF T_COL1 EQ ' ' THEN '' ELSE T_COL1;
N2_TEXT/A15 = IF T_COL2 EQ ' ' THEN N1_TEXT ELSE (IF N1_TEXT EQ ' ' THEN T_COL2 ELSE N1_TEXT || '.' || T_COL2);
N3_TEXT/A23 = IF T_COL3 EQ ' ' THEN N2_TEXT ELSE (IF N2_TEXT EQ ' ' THEN T_COL3 ELSE N2_TEXT || '.' || T_COL3);
N4_TEXT/A31 = IF T_COL4 EQ ' ' THEN N3_TEXT ELSE (IF N3_TEXT EQ ' ' THEN T_COL4 ELSE N3_TEXT || '.' || T_COL4);
END
-*
TABLE FILE CAR
PRINT
T_KEY
T_TEXT
-*
T_COL1
T_COL2
T_COL3
T_COL4
-*
N4_TEXT
WHERE RECORDLIMIT EQ 8
END
-*-------------------------------------------------------
Jim
WebFocus 8.201M, Windows, App Studio