Hello! i am having two comboboxes.Each having 10 items in
it.when i select first item in first combobox,it is not
similar in the second combobox.for ex in first combo if it
is Hyderabad,in second it should be some chenai or some
other item .Write a VBSCRIPT for that?

Answer Posted / ravikumar

Lets take Combo1 & Combo2

If u r selecting < Item1 > from Combo1 the same item1
should not be present in the Combo2 right..
if it is the case

step1) select Item1 from Combo1
Step2) write a function to validate the given item i.e
passed as perameter(Item1)by getting the innertext of the
Combo2 and use Instr function to find Item1 is there in the
inner text..if no Pass...If yes Fail.........


if the case is
the item selected in the combo2 should not be <item1>
then

get the selected item from the Combo2

strcomp("selected item","item1")

if yes fail
if no pass.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use actions in qtp ?

672


What is qtp window?

645


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1486


How to customize checkpoints with parameters?

3107


How to build scripts that access data from external sources?

1689






Where we can use the analog mode and where we can use the low – level mode?

655


Explain how you can find the absolute value of the number in qtp?

734


How do you test DLL files using automation Tool QTP?

2825


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1460


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1682


How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

1957


How many lines of code in each script of QTP?

4115


How QTP support all types of applications (platforms)?

4144


If I change the object name in one action will it be updated in all the actions? Or not?

696


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1650