we have one text box and one list box(list box appear in
same page or another page) what ever the text enter in text
box that must be displyed in list box as first one.
for example if we enter 10 in text box that is the 1st item
in list box . after that we enter 11 then 11 is the 1st item
and 10 is 2nd item. the maximum limit of list box is 10
items. if we enter 11th item the 10th item is deleted and
llth one is add as 1st one and 9th one goes to 10th position

Answers were Sorted based on User's Feedback



we have one text box and one list box(list box appear in same page or another page) what ever the t..

Answer / cradle_o_filth

Use Regular expression.......

Is This Answer Correct ?    2 Yes 0 No

we have one text box and one list box(list box appear in same page or another page) what ever the t..

Answer / renuka.patil

HELLO...........
Is it a toung twister mr or miss n plz inform me if u get
a answer 4 tht i will be waiting.

Is This Answer Correct ?    2 Yes 1 No

we have one text box and one list box(list box appear in same page or another page) what ever the t..

Answer / jagadesh

If Listbox.ListCount >= 10 Then
Listbox.RemoveItem Listbox.ListCount - 1
End If
Listbox.AddItem Textbox.Text, 0

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

What are the ways you can synchronize?

0 Answers  


Hi all, what is the latest version of QTP?

20 Answers   CTS,


What is the difference between shared and local object repository?

0 Answers  


How we can merge the object repositories?say if we have 2 or 3 object repositories then how we can merge them?Is there any option in QTP to merge the object repositories?

2 Answers  


there is 3 flash player buttons does QTP identify them or not else we have to do install anything related that software if we have to install what is that software and how we install it into QTP8.2 GIVE ME EXCAT ANSWER IF U KNOW.

1 Answers  






What is the use of sendkeys and what are send keys

0 Answers  


How to handle the exceptions using recovery scenario manager in QTP?

0 Answers   Crea, CTS,


In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.?

1 Answers   Siemens,


How you perform smoke and sanity testing using qtp?

1 Answers   Tech Mahindra,


Suppose one object is changed in a project after delivering the project.Where we will update that object? it can be present in many scripts so can we update all the scripts?

1 Answers   IBM,


In a shared Object Repository in QTP if some object is changed how can the other script which is using the same object can be known

6 Answers   iGate,


What is the difference between driver-script and AOM-script?

2 Answers   IBM, Value Labs,


Categories