identifying the psh button
I have 4 buttons(x,y,z,w) depends upon the data filled buttons will be enabled.
If x button is enabled then x is clicked else y button is cliked.
how to write the script as buttons will e enabled dynamically
Re: identifying the psh button
do you want to:
1. get the script to enable the buttons ?
2. get the script to click the button that is already enabled ?
Anyway here's the idea for each:
SQASetProperty("xButton_rec_string", "Enabled", "1")
Depending on your app, you'll have to replace "Enabled" with whatever the real property is (could be "Enabled", "Active", "Status", or whatever).
Same for "1".
Dim xIsEnabled As Variant
SQAGetProperty("xButton_rec_string", "Enabled", xIsEnabled)
If xIsEnalbed = 1 then
//click button X
//click button Y