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


Declaration:function  ReadFromOpenXMLFile (var InFile: TextFile; DataID: string): boolean;

The function ReadFromOpenXMLFile reads a string array from the current position of the file InFile. If the parameter DataID is empty, the first <strarray> tag is evaluated and read into the string array. If DataID is not empty, the entire rest of the open file InFile is read until a <strarray> 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 <strarray> and a valid end tag </strarray> has been found and the string array has been updated. In this case the OnChange event is triggered.

Hint 1: For a description of the valid tags, please see WriteToOpenXMLFile.

Hint 2: The XML description of the string array data has to follow a certain order: number of columns and rows have to precede all other data of the control.

Last Update: 2012-Oct-20