How to export data to fixed-length txt.

yls999

Member
eg.
----------------------------------------------
define variable temp as char format "x(100)".
for each pt_mstr no-lock:
temp = pt_part + pt_um + pt_desc1 .
disp temp .
end.
----------------------------------------------
it disp
12345EAtest1
123EAtest2.

But I want to disp: (if pt_part x(18);pt_um x(2); pt_desc1 x(24)
12345 EAtest1
123 EAtest2
(18 )2 (24 )

Thanks.
 

sphipp

Member
Code:
define variable temp as char format "x(100)".
for each pt_mstr no-lock:
temp = string (pt_part,"x(18)")  + string (pt_um,"x(2)") + string (pt_desc1,"x(24)").
disp temp  WITH WIDTH 120.
end.
 
Top