This is a sample of a record:
TSRec=record
ID:integer;
Name:string[150];
Tp:shortint
kat:byte
rem:string[10];
Admin,IsFromUser:boolean;
Place:string[100];
....
end;
And this is how the file is loaded:
assignfile(f,Fname);
{$I-} reset(f); {$I+}
if IOResult<>0 then exit;
seek(f,HeadJump-1050+HJ2-545);
MultiList.SetCapacity(filesize(f) div sizeof(SymptRec));
while not eof(f) do
begin
read(f,SymptRec);
//if SymptRec.Admin then
MultiList.Add([SymptRec.Name],SymptRec.ID,SymptRec.kat],[SymptRec.Admin,SymptRec.IsFromUser]);
end;
closefile(f);
When the file is loaded in lazarus/win32 everything works fine, but when I use the wince all records show “Admin=0” although the file contain records with various values. All other parts seem to function correctly.