TestComplete UserForms - TcxListBox issue
Hello, I have a listBox and need to select all the rows in the list after a checkbox is checked. This is the piece of code that I'm using. I'm running into an issue at the line marked in bold. I've attached the snapshot of error as well. any help would be appreciated! function UsrForm_cxCheckBoxAllFunctions_OnChange(Sender) { if(UserForms.UsrForm.cxCheckBoxAllFunctions.Checked){ Log.Message("List Length is: " +UserForms.UsrForm.cxListAllFunctions.Items.Count); for(var i = 0; i< UserForms.UsrForm.cxListAllFunctions.Items.Count; i++){ Log.Message("UserForms.UsrForm.cxListAllFunctions.Selected("+i+") = " + UserForms.UsrForm.cxListAllFunctions.Selected(i)); UserForms.UsrForm.cxListAllFunctions.Selected(i) = true; } }else{ for(var i = 0; i< UserForms.UsrForm.cxListAllFunctions.Items.Count; i++){ UserForms.UsrForm.cxListAllFunctions.Selected(i) == false; } } } Thank you AbhiSolved1.8KViews0likes3CommentsShowing Alerts on the Userforms
Hello, I'm using the Userforms to triggers some tests. To do some user input validations on the Userform itself, I wanted to use Alerts, but couldn't find a way to do it for the Userforms. Any suggestions or ideas would be really appreciated! Thank you AbhiSolved1.1KViews0likes1Comment