Promotic
WikipediaLinkedInYoutubeTwitterFacebook

State - property of the PmgButtonState object

Description:
State of the two-state button (0 or 1).
Syntax:
Long State
Note:
Property access for read and write. The preset value of this property is defined in the "Button state" 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.
The button state can be read directly in the onButtonUp event from pEvent.State property.

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

var oBtnState = pMe.Items("/BtnState");
var nState = oBtnState.State;  //reading

oBtnState.State = 1;  //writing
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