Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomMemData.SaveToBinaryFile(string) Method

Saves data to a binary file.

#Declaration

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

#Parameters

Name Type
AFileName string

#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