Your code send "MyButton not found" error which makes sense since MyButton.Enabled is trying to find the 'Enabled' field in a table.
IF MyButton = 'ENABLED' throws "Operator mismatch" error.
MyButton.Enable=not mybutton.enable
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.