createEx2

[ Function ]

public static createEx2(
   expression: string,
   propertyName: string,
   control: TcHmi.Controls.System.baseTcHmiControl
): void;

Creates a binding between a symbol and a control attribute using the attribute name.

Parameter

Name

Type

Description

expression

string

Symbol expression

propertyName

string

Name of the control property.

control

TcHmi.Controls.System.baseTcHmiControl

Reference to the control instance

Return value

Type

Description

void

No return value

createEx2 1:

Available from version 1.10

Sample - JavaScript

var myControl = TcHmi.Controls.get('TcHmiTextbox_1');
if(myControl){
    TcHmi.Binding.createEx2('%i%MyInternalSymbol_1%/i%', 'Text', myControl);
}