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 / ratikanta

Word="father?"
Set Fso=Createobject("scripting.filesystemobject")
Set Fs=Fso.opentextfie("path")
X=Fs.Readline
mydata=split(X," ")
If mydata=word Then
str=Replace(mydata,"?","")
EndIf
msgbox str

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of recording test cases in qtp?

596


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1585


Which scripting language used by quicktest professional?

530


How can I change object description or check point values in qtp?

557


Mention the test steps of qtp.

540






hi nani my doubt is how does qtp process metrix related to software process.

1553


In qtp, how you can exit for loop?

527


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1418


Explain the differences between table and db checkpoints?

583


What is the process of synchronizing qtp and aut?

568


How to use reporter.report event in qtp ?

557


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2740


How to use the object spy in quicktest professional (qtp) 8.0 version?

511


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

1861


Problem with XML checkpoint in QTP ?

3505