In my QTP script I have a word in notepad that ends in a
question mark, for example... "father?" As part of my
script I want to delete the question mark. How do you
delete a character in notepad?
Answer Posted / lak
Const ForReading = 1
'Save notepad file in D: Drive and type Father? then save
Const ForReading = 1
Const ForWriting = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("D:\Find.txt", ForReading)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, "?", "")
Set objFile = objFSO.OpenTextFile("D:\Find.txt", ForWriting)
objFile.WriteLine strNewText
objFile.Close
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
hou can we use vb script in qtp could u tell me breafly
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
How you can make an action as re-usable action?
Can I change properties of a test object?
What is checkpoints for quicktest professional (qtp)?
can any one say that where we can download the QTP trail version ??????????
How many types of recording modes in qtp? Which will be used when?
how to know no.of mails in our g mail by using vb-script
Why to use descriptive programming?
What are the methods of the TextStream object that are used for reading from a text file?
Mention the different actions types of qtp.
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
Explain qtp(quick test professional)?