Home GuiPack RepList Class TRLData Methods ReadFromXMLString |
|
| See also: DataID, ReadFromXMLStream, CheckIfValidReplist, DataID, LoadFromXMLFile, OnPercentDone, ReadFromXMLStream, SaveAsXMLFile (ReportListView), WriteToOpenXMLFile (ReportListView), WriteToXMLStream (ReportListView), OnPercentDone (DataTable) |
|
ReadFromXMLString |
 |
| Unit: | SDL_replist | | Class: | TRLData | | Declaration: | function ReadFromXMLString(InString: string; DataID: string): boolean; |
The function ReadFromXMLString reads the data from the string InString (always starting with the first character of the string). If the parameter DataID is empty, the first <replist> tag is evaluated and read into the TRLData structure. If DataID is not empty, the entire rest of the string is read until a <replist> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not
case-sensitive). The property DataID is set to
the identification string of the XML data source. The function ReadFromXMLString returns TRUE if both a valid starting tag <replist> and a valid end tag </replist> has been found.
| Hint 1: |
The XML description of the data has to obey a certain order: number of columns and rows have to precede all other data of the control. |
|