I'm totally confused. In the routine below, x intializes to 100 and then decrements to 1, and never gets to zero.
::blink:: What am I missing?
Thanks...
*******************************************************
Procedure SaveRecordsToFile(Name : String);
var
F : File of AddressRecord;
FN : String;
x : Integer;
begin
FN := AppPath + '\' + Name + '.DAT';
AssignFile(F,FN);
Rewrite(F);
For x := 0 to 99 do
If ARec[x].Name <> '' then Write(F,ARec[x]);
CloseFile(F);
end;
::blink:: What am I missing?
Thanks...
*******************************************************
Procedure SaveRecordsToFile(Name : String);
var
F : File of AddressRecord;
FN : String;
x : Integer;
begin
FN := AppPath + '\' + Name + '.DAT';
AssignFile(F,FN);
Rewrite(F);
For x := 0 to 99 do
If ARec[x].Name <> '' then Write(F,ARec[x]);
CloseFile(F);
end;