Thursday, June 3, 2010

Write a program to select all the Radio button

Set ODecButton = Description.Create()
ODecButton("Class Name").value = "WinRadioButton"
Set butcnt = Window("Flight Reservation").ChildObjects(ODecButton)
nobutcnt = butcnt.count()
msgbox nobutcnt
For i=0 to nobutcnt -1 step 1
butcnt(i).set
Next

No comments: