How to check and display a particular word from a paragraph?



How to check and display a particular word from a paragraph?..

Answer / dinesh1433

strParagraph="There are subtle differences between these methods. The CreateTextFile is used to create a file and a
TextStream object. This method can optionally overwrite an existing object. The OpenTextFile opens an
existing file and returns a TextStream object, but can optionally create the filename if it does not exist. The
OpenAsTextStream object opens an existing file and returns a TextStream object."

str="opens"

if Instr(strParagraph,str)>0 then
msgbox "The particular word found from the paragraph"
msgbox str

else
msgbox "particular word not found from the paragraph"
end If

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

How to capture a window in QTP?

0 Answers   IBM, Mphasis,


did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions

3 Answers  


Plz suggest me a good training institute in Mumbai/hyderabad for QTP…. Plz advice thank u

29 Answers   IBM,


What phases are involved in testing an application in qtp?

0 Answers  


suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro)

4 Answers   Fidelity, Wipro,


why text area checkpoints cannot used for web applications

0 Answers  


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  


Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance

0 Answers   Mphasis,


i want click on a link which is in 3rd row and 2nd column of a web table.write script to execute

2 Answers   IBM,


Hi, I am new into the field of testing and I need to know how can I begin automating the testing of Mainframe applications using QTP. Can anyone help me?

0 Answers  


Hi all please solve this.It is urgent..... When I right clicked on a Web image manually It displayed Open link,open link in new window,save picture as, Email picture,Printpicture,propeties...etc. While automation I have written a code like this 'browser("Google").Page("ramseeker®: Memory and_3").Image ("graphOfModel").Click 10,10,micRightBtn But the right click menu was not displayed. I want to save that image in a seperate folder

6 Answers  


1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that)

3 Answers   Synechron,


Categories