Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combobox selections
#1
Not Solved
Hi,
I have a 2 wincombo boxes(Flight Reservation,window based).In that i want to select one by one and also in combox items also .

i dont want to Indivual selection , want to loop it .

My code is :

Code:
Window("Flight Reservation").WinEdit("Date of Flight:").Type "12/24/09"

Set a=Description.Create()
a("nativeclass").value="comboBox"

set b=Window("Flight Reservation").ChildObjects(a)

f=b.count

For i=1 to f

s=Window("Flight Reservation").WinComboBox("nativeclass:=comboBox", & i).GetItemsCount

Window("Flight Reservation").WinComboBox("nativeclass:=comboBox", & i).select randomnumber.Value(0,s)



Next


but iam getting syntax error pls help.

Thanks

Madhu.s
Hey solved.





Code:
set b=Window("Flight Reservation").ChildObjects(a)
f=b.count

For i=0 to f-1
s=b(i).GetItemsCount
b(i).select randomnumber.Value(0,s)
Next
Thanks
Closing thread
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 1,957 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  Win object instead of combobox excellentpawan123 1 2,659 07-15-2014, 10:29 AM
Last Post: excellentpawan123
  how to validate combobox values with testdata values 1981.madhu@gmail.com 3 5,546 09-09-2009, 06:53 PM
Last Post: Saket
  How to select multiple items from a combobox/listbox prasadworld321 4 12,792 08-26-2009, 02:07 PM
Last Post: prasadworld321
  Combobox Parameterization rajaselvan.d 0 1,965 03-21-2009, 01:32 PM
Last Post: rajaselvan.d

Forum Jump:


Users browsing this thread: 1 Guest(s)