Forum Discussion
Philip_Baird
12 years agoCommunity Hero
Hi Jeremy, all the details of the Files referenced in the Stores are found in the Projects "Files.tcFiles" (XML format) file.
The "tc_ini" that is the Name that is viewed in the Files screen appears to be a key to locate the details in the XML tree, as such:
<Node name="item data">
<Node name="settings"/>
<Prp name="caption" type="S" value="tc_ini"/>
<Prp name="filename" type="S" value="General\tc.ini"/>
<Prp name="id" type="S" value="{FD24111E-DBC9-432E-8EEF-3A36A7BFE74C}"/>
<Prp name="signature" type="S" value="{FC92F8D9-8A57-4D74-B8B4-479AA50BF647}"/>
<Prp name="update" type="B" value="0"/>
<Prp name="version" type="S" value="10.0"/>
</Node>
<Prp name="index" type="I" value="1"/>
<Prp name="key" type="S" value="{FD24111E-DBC9-432E-8EEF-3A36A7BFE74C}"/>
<Prp name="pluginname" type="S" value="Stores"/>
<Prp name="type" type="S" value="{FC92F8D9-8A57-4D74-B8B4-479AA50BF647}"/>
<Prp name="typename" type="S" value="File"/>
</Node>
From what I have observed, the call Files.FileNameByName("tc_ini") works as such:
1. Go to the Files.tcFiles file
2. Find the node that has a "Prp" element with the value attribute of "tc_ini" where the "name" attribute is "caption"
3. Retrieve the "value" attribute of the "Prp" element with the "name" attribute of "filename"
I qualified this by manually editing the "filename" "Prp" element and Files.FileNameByName("tc_ini") returned the path I entered.
It also showed that it does not read the file at all that file name I changed to did not exists but Files.FileNameByName("tc_ini") still functioned without error.
As I said, this is how I have observed this to work, I have no idea of the actual inner workings of the function code.
Regards,
Phil Baird
The "tc_ini" that is the Name that is viewed in the Files screen appears to be a key to locate the details in the XML tree, as such:
<Node name="item0000000001">
<Node name="item data">
<Node name="settings"/>
<Prp name="caption" type="S" value="tc_ini"/>
<Prp name="filename" type="S" value="General\tc.ini"/>
<Prp name="id" type="S" value="{FD24111E-DBC9-432E-8EEF-3A36A7BFE74C}"/>
<Prp name="signature" type="S" value="{FC92F8D9-8A57-4D74-B8B4-479AA50BF647}"/>
<Prp name="update" type="B" value="0"/>
<Prp name="version" type="S" value="10.0"/>
</Node>
<Prp name="index" type="I" value="1"/>
<Prp name="key" type="S" value="{FD24111E-DBC9-432E-8EEF-3A36A7BFE74C}"/>
<Prp name="pluginname" type="S" value="Stores"/>
<Prp name="type" type="S" value="{FC92F8D9-8A57-4D74-B8B4-479AA50BF647}"/>
<Prp name="typename" type="S" value="File"/>
</Node>
From what I have observed, the call Files.FileNameByName("tc_ini") works as such:
1. Go to the Files.tcFiles file
2. Find the node that has a "Prp" element with the value attribute of "tc_ini" where the "name" attribute is "caption"
3. Retrieve the "value" attribute of the "Prp" element with the "name" attribute of "filename"
I qualified this by manually editing the "filename" "Prp" element and Files.FileNameByName("tc_ini") returned the path I entered.
It also showed that it does not read the file at all that file name I changed to did not exists but Files.FileNameByName("tc_ini") still functioned without error.
As I said, this is how I have observed this to work, I have no idea of the actual inner workings of the function code.
Regards,
Phil Baird