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 difference between run time object and test object?
What are the challenges you faced during you entire life automation ?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
What is checkpoint in qtp?
How the smart identification is used in real time?Please explain with an example
How to run a test using quicktest professional (qtp)?
If you are testing a web application then what will you test in that application?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
Which features or drawbacks of QTP lead to the upgrade for a newer version?
hou can we use vb script in qtp could u tell me breafly
what is the difference between the modular framework and datadriven frame work
Explain runtime dynamic settings?
Hi All, How to Compare two strings character by character in QTP
what is description object?
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