Hi experts.
Nice day to all of you.
I’m practicing Script in Factorystudio version 9.2
In my Project, I created a display. And at Display I drop some symbol such as button, grid window, trend window… I knew that I can change their properties by property window for each symbol. But I want to change their properties by script on 2 environments:
CodeBihind of Display
Code at Task or class environment
I don’t know how can I point to these symbol by Script.
Please help me.
Many Thank
The CodeBehind and Script do the same, the only diffence is that you will have to call the script in the code behind, for example we create a class called “classesNumber1”, and we want to call the function called “Main”, we write the following line in the codeBehind:
Now, talking about the properties:
Here is an example reading the property field “MaxLines” of AlarmWindow, you can do the same to other objects.
In our example we called the control as “test1” and the AlarmWindow we called “field1”, the Tag “TagReturn” will receive the number 3000 because we are reading the MaxLines property.