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
What is a Patch in QTP?
How many lines of code in each script of QTP?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
What is meant by Output Value in UFT?
What is object spy in quicktest professional (qtp)?
Explain different type of event trigger option.
What is parameter in qtp?
How software automation specialist enter steps in the Expert View?
What is test object?
Explain types of output values?
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
How many tabs are available in debug viewer pane?
Hi All, How to get repeated word in string . Thanks Balaji
How can you pass value one action to another action?