How to check and display a particular word from a paragraph?
Answer Posted / 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 View All Answers
What is the syntax to call one action in another?
The hybrid framework can be implemented for any application. Is it true?
what is Property......End Property loop? how to write sript for it in QTP
What are some test assets and related extensions of qtp?
could any help me please, how to work on visual foxpro application using UFT
What is the virtual object?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
How can i check items sorted or not in a weblist ? Give me the script for this...
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
What are the different types of action?
Explain types of descriptive programming?
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
How will you test a stapler?
UFT 12.02 which ALM version will support