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
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
How to capture a window in QTP?
How will you handle java tree in qtp?
Which scripting language used by quicktest professional?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
Tell some commonly used Excel VBA functions?
What do you mean by checkpoints in qtp?
write the vb script for call to new action in qtp?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What are the views available in qtp?
In qtp, how you can remove the spaces from string?
What are the check points can be inserted without recording?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version