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


Please Help Members By Posting Answers For Below Questions

What is difference between run time object and test object?

558


What are the challenges you faced during you entire life automation ?

1006


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.

1373


What is checkpoint in qtp?

554


How the smart identification is used in real time?Please explain with an example

1549






How to run a test using quicktest professional (qtp)?

544


If you are testing a web application then what will you test in that application?

1542


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

1464


Which features or drawbacks of QTP lead to the upgrade for a newer version?

575


hou can we use vb script in qtp could u tell me breafly

1740


what is the difference between the modular framework and datadriven frame work

1918


Explain runtime dynamic settings?

2026


Hi All, How to Compare two strings character by character in QTP

953


what is description object?

1602


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

1433