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

If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


I want to test advanced Java applications what kind of add- ins I have to install?

1 Answers  


what kind of frame work you used in your last project?

0 Answers   Deloitte,


where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code

3 Answers  


Currently i have designed my script based on the test cases present in Quality Center. I want to run my script from quality center. Can anyone help me to get the code which will connect QTP with Quality Center and execute the test cases?

1 Answers  






1. How to capture data from images in QTP and produce them in Excel sheet

1 Answers   Broadridge,


1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent

8 Answers  


Explain about Hybrid Framework

2 Answers   IBM,


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

0 Answers  


Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


How can i Save the snapshots in a specified folders using Scripting in QTP?

1 Answers  


i am unable to select an item from combobox using Descriptive programming. can any one give me code for scheduling the ticket using Descriptive programming.

1 Answers  


Categories