Data binding S - Disk file - configuration window
Description:
The value of the data binding
S is a text get from the selected file.
This data binding is
not functional
in the Web panel.
This data binding is obsolete (but functional) and it is better to use:
- In the
PmaPanel object, create a designer method (for example
LoadFile), which returns the contents of the file.
You then call this method in the
PmgObject.onStart event, for example:
pMe.
Value =
pMe.
PmPanel.
Methods.
LoadFile().
Data binding configurators:
File name | The file name with the path from which the text has to be read.
If it goes about the text file, then only this configurator has to be filled, Section and Key configurators are not important in this case. In this case the whole content of a text file will be read.
The file can be listed by the next button. |
Section | Section of the *.ini file from which the text has to be read (fill without brackets).
Macro expression can be used for input (it is evaluated while the window is opening). |
Key | Key of the *.ini file from which the text has to be read.
Macro expression can be used for input (it is evaluated while the window is opening). |
---|
Note:
Data binding is not limited by text file size (it can bind to text with big size).
If it goes about the
INI file, then it is necessary to fill not only the
File name configurator but also the
Section and
Key configurators.
This data binding is evaluated
only when the panel is opened and then it is not refreshed.
Example:
Let's have the file "Boiler.ini" with the following content
[Boiler1]
Run=1
Number 1 (as a string) from the
"Boiler1" section and from the
"Run" key can be got by setting the configurators as follows:
File name |
C:\Data\Boiler.ini |
Section |
Boiler1 |
Key |
Run |