Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Value - property of the PmgString object

Description:
Displayed value.
Syntax:
Variant Value
Note:
Property access for read and write. The preset 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 the value is transferred also into the source of this binding.

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

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

oString.Value = "Text";  //writing
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.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice