Applies To:
  • CitectSCADA 6.xx, 7.xx
  • Vijeo Citect 6.xx, 7.xx
I would like to use the ciText.TextBox ActiveX control on a super genie/popup page and set the text dynamically. I have tried associating the text property of the control with one of the super genie associations using the standard super genie notation (e.g. ?STRING 1?) but this does not work. I have also tried associating it with the return value of one of super genie Cicode functions (e.g. AssInfoEx, AssGetProperty) but this also does not work. How can I achieve this functionality?

You will need to set the text property of the CiText.TextBox control using the _ObjectSetProperty ActiveX Cicode function, as shown below:

_ObjectSetProperty(ObjectByName("ANXX"), "Text", ?STRING Y?)

  • ANXXX is the Object Name as shown under the Access > Identification tab of the ciText.TextBox Properties window
  • Y is the number of the super genie association which contains the text you wish to display
You can call this Cicode using using a Cicode object. The Cicode object will execute the command continuously so the value will constantly be updated. However, if you only want the value to be set when the super genie is first displayed, change the command to the following:

IF PageInfo(7) = "1" THEN
_ObjectSetProperty(ObjectByName("ANXX"),"Text",?STRING Y?)

Related Articles:

Q4986 - WHITEPAPER: ActiveX Controls in CitectSCADA
Q5053 - how to use CiMeter On Supergenie Popup Page

ActiveX, ciText.TextBox, Supergenie