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
terminal services client
How to write business scripts using object repository with different scenarios
how to disable the pop ups through QTP using a script
How many number of actions possible in qtp?
Write a QTP script to enter a keyword in to Google search engine?
If I give some thousand tests to execute in two days what do you do?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
Explain the concept of object repository and how QTP recognizes objects?
Why do we use breakpoints in QTP?
How to Test the mainframe application?
How to remove the associated function library?
How can you handle exceptions in qtp?
if numbers are always changing write a script for that
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
Explain types of descriptive programming?