how can i replace any text from the qtp script with some
anothere text



how can i replace any text from the qtp script with some anothere text..

Answer / aiswaryan

'Replace(expression, find, replacewith)
reptext=replace("Good Morning", "Morning", "Evening")
msgbox reptext

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

0 Answers   Value Labs,


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

0 Answers  


actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


Where can I find and view run-time data table?

0 Answers  


can we install qtp in windows vista

2 Answers  


Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value

1 Answers   TCS,


HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif

7 Answers   Xavient,


How you can write contexts to text file in qtp?

0 Answers  


What are the main differences of qtp and win runner?

0 Answers  


During execution, how can we capture the data from the pop- up, ie. when any popup comes with some numbers written on it, then how can we capture the value/number that is coming on the pop-up and save in the dynamic file/or other file, even when the run is going on.

2 Answers   Wipro,


If aclient comes to tester ask to bye a tool Keep aside about the cost,In what way we can choose the tool.

1 Answers  


How to record application running on the Virtual machine?

0 Answers  


Categories