Skip to main content

TdxCustomMemData.SaveToStrings(TStrings) Method

Saves data to a specified string list.

Declaration

procedure SaveToStrings(AStrings: TStrings); dynamic;

Parameters

Name Type
AStrings TStrings

Remarks

Call this method to store the ExpressMemData component’s data to a string list referenced by the AStrings parameter. The first string in the list enumerates field names, while all other strings contain string representations of the corresponding field values. The SaveToStrings method uses the DelimiterChar to separate field entries in each output string.

The SaveToTextFile method calls the SaveToStrings method internally to store data to a string list and then calls the list’s SaveToFile method to store the data to a file.

Note

Since the SaveToStrings method’s output depends upon current regional settings, you are not guaranteed that all data will be loaded properly at a later point in time. If regional settings differ from the original settings with which the string list was created, loading errors may occur. To make certain that your data is persisted regardless of regional settings, use the SaveToBinaryFile, SaveToStream, LoadFromBinaryFile, and LoadFromStream methods instead.

See Also