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



ReadFromOpenXMLFile


Unit: SDL_datatable
Class: TDataTable
Declaration: function ReadFromOpenXMLFile (var InFile: TextFile; DataID: string): boolean;

The function ReadFromOpenXMLFile reads the data from the file InFile. If the parameter DataID is empty, the first <datatable> tag is evaluated and read into the data structure. If DataID is not empty, the entire file is read until a <datatable> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not case-sensitive). The function ReadFromOpenXMLFile returns TRUE if both a valid starting tag <datatable> and a valid end tag </datatable> has been found.



Last Update: 2023-Dec-14