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....



ExportAsASC


Unit:SDL_datatable
Class: TDataTable
Declaration: [1] procedure ExportAsASC (FName: string; Precision: integer);
[2] procedure ExportAsASC (OutStream: TStream; Precision: integer);

The method ExportASCFile writes the contents of the data table along with all additional information (headers, etc.) to a readable ASCII text. The format of the text is the same as used by the method ImportASC.

Version [1] of ExportASCFile stores the data as a text file. The parameter FName specifies the filename (default extension ASC). Version [2] writes the data into the stream OutStream.

The parameter Precision specifies the number of decimal places to be used in the text file. Note that the numeric values of a table will be altered if the precision for exporting is too low.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): ntabedit



Last Update: 2007-Mai-19