Value - property of the PmgString object

Displayed value.
Variant Value
Property access for read and write. The default value of this property is defined in the "Value" configurator of this object.
If it is written into this property and if this property is linked to the data binding PP, AP, SP, OP or GP, then this value is transferred also into the source of this binding.

This property is also functional in Web panels.
JavaScriptVBScriptSelect and copy to clipboard

var oString = pMe.Items("/Txt");

var value = oString.Value;   // Reading from the property
oString.Value = "Text";   // Writing into the property
An example of formatting the value of the Date type:
In the "Value" configurator bind in the "E - Data binding to the general expression" data binding the v1 variable by the PP binding to the Date variable. Then there will be the following in the "JavaScript expression" configurator:
JavaScriptSelect and copy to clipboard

Pm.FormatDate(v1, "%d.%m.%Y %H:%M:%S.%2T");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.