I have a function that is using a parameter; text. It says that this is not permissible. Is there a way around this?
Wardlow
procedure WriteFile2P(FileName: text; Name: String; Parm1: double; Parm2: double; Avg: double; count: integer);
begin
if count = 0 then
begin
AssignFile(FileName, 'c:\data.txt');
Rewrite(FileName);
end;
if count = 0 then
begin
write(FileName, 'LengthMA1'); write(FileName, ' '); write(FileName, 'LengthMA2');
write(FileName, ' '); writeln(FileName, 'Average PercentProfit');
end;
write(FileName, FileName); write(FileName, ' '); write(FileName, FileName);
write(FileName, ' '); writeln(FileName, avg:0:2);
end;
end.
Users browsing this forum: No registered users and 19 guests