|
this.SetBindScript("Text", "U01.F01.T01");
|
You can set multiple bindings at once.
|
var a = c("Text", "SwitchValue");
var b = c("INOUT:U01.F01.T01", "OUT:U01.F01.T02");
this.SetBindScript(a, b);
|
Since double quotation marks cannot be written in a script, they are synthesized as follows:
|
var dq = ::Chr(34);
this.SetBindScript(
"FillColor",
"{TAG01}{" + dq + "#FF0000" + dq + "},{default}{" + dq + "#00FF00" + dq + "}"
);
|
*Another technique is to first write the text in single quotation marks as shown below and then rearrange the characters.
|
this.SetBindScript(
"FillColor",
::ReplaceStr("{TAG01}{'#FF0000'},{default}{'#00FF00'}", "'", ::Chr(34))
);
|
|