The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: TExportTextEvent = procedure (Sender: TObject; mode, index: integer; var OutText: string) of object;

An event of type TExportTextEvent is generated when the data is exported as CSV file (TDataTable.ExportAsCSV, TRLData.ExportCSV). This event allows to adjust the exported text (for example, in order to include additional information per data row).

The mode parameter indicates which information is about to be exported:

mode type of information
1 string containing the column names
2 row data string

The parameter index is only valid for mode = 2. In this case it contains the row index of the data row to be exported. The variable parameter OutText contains the text to be written to the CSV file and may be adjusted to the user's need.

Last Update: 2023-Feb-06