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

In what occasion we can specify global sheet and action sheet?

0 Answers  


how to upload an excel sheet to quality center?

1 Answers  


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

0 Answers  


Hi, I Need code to click the webbutton inside of webtable. I need to click a particular 'Edit' webbutton inside of webtable. For Example... Having 5 Rows and 10 Columns. 'Edit' webbutton are placed in 10th Column. I need to click the 3rd row 'Edit' button with unique value. Browser("....").Page("...").Frame("...").WebButton("btn_Edit ") I Tried with below code: Set objButton = Browser("...").Page("...").Frame("...").WebTable("...").Chil dItem(3,10, Webbutton,0).Click - Not working this code :( Anyone can help me to sort out this simple issue ???

1 Answers  


Explain the qtp test phases.

0 Answers  






what type of automation is follwed in the project?

0 Answers   Google,


what is QTP batch testing tool?

2 Answers  


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  


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

0 Answers  


What is Associate Repository in QTP 9.2 ?

0 Answers  


I have 3 browsers i want to give facebook url in 2 nd browser using qtp

3 Answers   Tech Mahindra,


I learned all the objects of my application in object repository thru English Language. now i want to use same object repository for other languages(French,Dutuch and Chinese)

1 Answers   TCS, Wipro,


Categories