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
Answer Posted / 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 View All Answers
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
How to test background color and dynamic images during run time can you put the check point for moving objects?
What is the recovery scenario in qtp?
what type of run time errors you get while you ar edoing rpg program?
What is the file extension of the code file in qtp?
Your roles and responsibilities and daily tasks? (As automation tester)
how to acess a test in RSA?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
what is the difference between data driver & data driven and driver script?
How you debug your script?
What is a data driven test in qtp?
Whether qtp 9.0 supports Test director8.0
How do you create new test sets in td?
Have you used xml check point in your project? How?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek