Forum Discussion
sbkeenan
13 years agoFrequent Contributor
Hi
I see you're using the DevXpress CheckEdit control in your app. I too am testing an app with such controls and have to perform similar checks. Unfortunately, I am using VBScript, so you'll forgive me for using that syntax....
Basically, I've found that working with the wState property works sometimes, but on other occasions, for no apparent reason, if I wish to check the box, the setting is lost when I move on to perform other actions. The way in which I got around this was not to use the wState property at all.
What I do is to call the control's Click method and then use the Checked property, in VBScript it looks like this:
I see you're using the DevXpress CheckEdit control in your app. I too am testing an app with such controls and have to perform similar checks. Unfortunately, I am using VBScript, so you'll forgive me for using that syntax....
Basically, I've found that working with the wState property works sometimes, but on other occasions, for no apparent reason, if I wish to check the box, the setting is lost when I move on to perform other actions. The way in which I got around this was not to use the wState property at all.
What I do is to call the control's Click method and then use the Checked property, in VBScript it looks like this:
Call chkCtrl.Click(chkCtrl.Width / 2, chkCtrl.height / 2, 0) 'This clicks the centre of the control - giving it focus.
chkCtrl.Checked = True 'This checks the checkbox - use False to un-check it.
If you build this into your IF statement, you might find that it works!!
Good luck.
Best Regards
Stephen.
Related Content
- 2 years agoTestQA1
- 3 years agoMis3
- 2 years agodhundley
- 6 years agoJakemorley
Recent Discussions
- 2 days agoMW_Didata