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

i am asuming there is only one "father?"
string in file
open the desired notepad
and them search for the desired string byusing instr
v = instr(filename,searchstring)'the position of the string
father
b=instr(filename,"?") 'the position of the ?
n =b-n ' will give the size of the string

now use the replace function to replace the ? with whatever
uw want

it will show the position of first occurance of the stirng

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concept of qtp?

750


What is method name to compare two XML files.

1721


Discuss quicktest professional environment?

775


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2468


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

1740


what is object and child object.. explain ..if possible give some example for better understanding ..

1730


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

3116


How to suppress warnings from the test results page?

779


how to explain a claims and insurance project?

1978


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

2053


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1699


What are the common defects found in your project? (in qtp interview)

1806


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1685


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1889


What are the methods used in UFT to handle exceptions or run-time errors?

849