oItem.Vars(sName).Value = x
|sName||(String) Name of the item variable (case sensitive text)|
The graphic item variables are defined on the Variables page.
The method can also be called in the graphic item events for Web panels.
The variable is an Object type. This object has only a single property Value, representing the value of variable itself. Property access for read and write.If it is written to 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.
oItem.Vars("Numvar").Value = x
oItem.Vars("Colorvar").Value = "#ff0000" 'color setting by RGB String
oItem.Vars("Fontvar").Value = "PmSmallBold"