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 are the factors on which script execution time is dependent?

605


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

2444


Get the count of files of similar types from a folder.

970


What is an object repository?

602


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2196






Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

1707


Do you know how to connect database? Can you tell me the procedures?

545


Can we run test with out adding object in object repository? How it is possible?

540


How QA specialist can identify when programmatic descriptions are useful?

1970


Explain advantages and disadvantages of ddf?

595


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2865


write the vb script for call to new action in qtp?

1857


What is an expert view and keyword view?

567


What is the difference between qtp and selenium?

545


What is the quicktest professional testing process?

526