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


Please Help Members By Posting Answers For Below Questions

What r the different filters in defect in quality center

3386


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2819


How to execute a winrunner script in quicktest professional?

650


What are the properties you would use for identifying a browser and page when using descriptive programming?

715


How will you find the current time of the remote machine using QTP script?

692






how will you load the test cases in ddt?

1675


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2355


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1860


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

718


What are the different recording modes and how do they work?

703


How do you create new test sets in td?

609


What is a checkpoint? How many check points are there in qtp?

616


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1861


How to use descriptive programming?

731


Hai anyone please "Explain about Framework in QTP?"

1721