0
Answered

.Value ???

Beckerautomacao 11 years ago in iRidium Script updated by Oksana (expert) 10 years ago 2

How do I get or set the value of a button?


I know there is a property "Text", there is "Value"? Not found anywhere and did not work in my tests.


Example text:
IR.GetItem ("PageName"). GetItem ("ItemName"). Text = "Text Item";


Example Value:
"IR.GetItem ("PageName"). GetItem ("ItemName"). Value = item";
Hi,


If you make your button a trigger button with it's default settings, you can set the value like this:
IR.GetItem ("PageName"). GetItem ("ItemName"). Value = 1; //state 2
IR.GetItem ("PageName"). GetItem ("ItemName"). Value = 0; //state 1

Regards,

Benno