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 are the factors on which script execution time is dependent?
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!!
Get the count of files of similar types from a folder.
What is an object repository?
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
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.
Do you know how to connect database? Can you tell me the procedures?
Can we run test with out adding object in object repository? How it is possible?
How QA specialist can identify when programmatic descriptions are useful?
Explain advantages and disadvantages of ddf?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
write the vb script for call to new action in qtp?
What is an expert view and keyword view?
What is the difference between qtp and selenium?
What is the quicktest professional testing process?