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

hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1701


What is the basic concept of quicktest professional (qtp)?

672


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1618


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1298


What are the various types of Actions in UFT?

691






What are the different kinds of test steps?

659


wht type of User defined functions or Java Releated functions do we write in VB scripting

1931


assume i have few url link how will i dynamically call then using descriptive programming?

1692


How to find operating system information using the qtp script?

685


What is a Patch in QTP?

690


what is stepin & stepout?

1511


How many types of recording modes in qtp?

686


What is test object model in quicktest professional (qtp)?

639


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3808


Define object spy ?

658