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

U can do it with SFO script[I am not sure of Syntax or
exact code,just approach I m Mentioning Below]-
Set oObj=createObject("Script.FyleSystemObject")
oFile=oObj.openTextFile("YourPath")
Do Until EndOfSream
oStr=oObj.readLine
if InStr(oStr,"?")>0 Then
RePlace(oSter,"?","")
Loop

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an object repository?

610


When and why to use descriptive programming?

609


what is defenetion of kiran can u tell me plz CVS, SVN

1572


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

922


What is a quick test professional?

633






Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1535


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1444


Describe the differences between functions and actions in UFT?

612


How many types of recording facility are available in quicktest professional?

564


How to get popup error message.

1030


What is contained in the object repository?

619


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

549


What is text/text area checkpoint?

564


how to disable the pop ups through QTP using a script

1730


how to write xml output check point bu useing descriptive programing .means without useing output check point

1654