Back to Devexpress

TdxCustomMemData.SaveToBinaryFile(string) Method

vcl-dxmdaset-dot-tdxcustommemdata-dot-savetobinaryfile-x28-system-dot-string-x29.md

latest1.6 KB
Original Source

TdxCustomMemData.SaveToBinaryFile(string) Method

Saves data to a binary file.

Declaration

delphi
procedure SaveToBinaryFile(const AFileName: string); dynamic;

Parameters

NameType
AFileNamestring

Remarks

Call this method if you want to save data to a binary file specified by the FileName parameter.

// Saves data to a binary file
procedure TForm1.Button1Click(Sender: TObject);
begin
  dxMemData1.SaveToBinaryFile(ExtractFileDir(Application.ExeName) + 'mdata.bin');
end;

After this, you can load data from this file via the LoadFromBinaryFile method call.

At design time, you can use the functionality provided by the ExpressMemData Persistent Editor to save/load data from a binary file (via the Save… and Load… buttons).

See Also

TdxCustomMemData.CreateFieldsFromBinaryFile

TdxCustomMemData.LoadFromBinaryFile

TdxCustomMemData.SaveToStream

TdxCustomMemData.SaveToStrings

TdxCustomMemData.SaveToTextFile

TdxCustomMemData Class

TdxCustomMemData Members

dxmdaset Unit