ZMemTable ?
Posted: 12.07.2024, 16:18
How does ZMenTable work?
I didn't find any documentation about it...
Thanks
I didn't find any documentation about it...
Thanks
This is the official forum of ZeosLib providing support to all ZeosLib users.
https://zeoslib.sourceforge.io/
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
ZMemTable1.Close;
ZMemTable1.FieldDefs.Clear;;
ZMemTable1.AssignDataFrom(ZQuery2);
end;
procedure TForm1.Button2Click(Sender: TObject);
var fs: TFileStream;
begin
fs := TFileStream.Create('t2code.bin', fmCreate);
Try
ZMemTable1.SaveToStream(fs);
Finally
fs.Free;
End;
end;
procedure TForm1.Button3Click(Sender: TObject);
var fs: TFileStream;
begin
ZMemTable1.Close;
ZMemTable1.FieldDefs.Clear;
fs := TFileStream.Create('t2code.bin', fmOpenRead);
Try
ZMemTable1.LoadFromStream(fs);
Finally
fs.Free;
End;
end;