Hi to all,
After having bought basic4PPC some years ago, I have at the end some time to play with it. My first project is normally very simple: I try to write a small PPC application that would allow me to view the XML output of my actions in the GettingThingsDone software called ThinkingRock.
It can export in the XML format and the output looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<desc>Call YYY</desc>
<context-desc>None</context-desc>
<topic-desc>Recherche</topic-desc>
<project-desc>Project XXX</project-desc>
<action-date>sam. 10 nov. 2007 00:00:00</action-date>
</action>
</actions>
When I try to load this file to a table, doing
file = OpenDialog1.File
Table1.LoadXML (file)
I get an error ath the line LaodXML telling me it is impossible to find table 0
What am I doing wrong? What are the constraints about the XML files that can be load to the table control? I cannot find anything on this point in the help file, neither in the table sample written by Erel. I am rather lost...
Precisions: I try this code on the desktop. The error appears after having chosen the xml file in the open file dialog.
Thank you very much in advance for your help.
Murat
Murat
After having bought basic4PPC some years ago, I have at the end some time to play with it. My first project is normally very simple: I try to write a small PPC application that would allow me to view the XML output of my actions in the GettingThingsDone software called ThinkingRock.
It can export in the XML format and the output looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<desc>Call YYY</desc>
<context-desc>None</context-desc>
<topic-desc>Recherche</topic-desc>
<project-desc>Project XXX</project-desc>
<action-date>sam. 10 nov. 2007 00:00:00</action-date>
</action>
</actions>
When I try to load this file to a table, doing
file = OpenDialog1.File
Table1.LoadXML (file)
I get an error ath the line LaodXML telling me it is impossible to find table 0
What am I doing wrong? What are the constraints about the XML files that can be load to the table control? I cannot find anything on this point in the help file, neither in the table sample written by Erel. I am rather lost...
Precisions: I try this code on the desktop. The error appears after having chosen the xml file in the open file dialog.
Thank you very much in advance for your help.
Murat
Murat
Last edited: