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_math2
Class: TCurveFit
Declaration: function ExportAsASC (FName: string; Precision: integer): string;

The method ExportAsASC writes the contents of the curvefit data (accessible via the properties DataX and DataY) to a readable ASCII file. The format of the text is the same as used by the method ImportASC.

The parameter FName specifies the filename (default extension ASC). The parameter Precision specifies the number of decimal places to be used in the text file. The method returns an error message string if any problem occurs during opening the file (e.g. 'file access denied' for read-only files).

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



Last Update: 2023-Feb-06