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

How will you check that your test cases covered all the requirements?

566


How to save your test using quicktest professional (qtp)?

599


write script for bitmap image?

1540


How you know that a test case is a regression test case

3061


what is meant by Implicit and explicit requirements?

3621






Have you used xml check point in your project?

556


Limitations in QTP?

1746


How can i initiate the objects to find uniquely in OR

1473


what is test scheduleling?

2015


Give the syntax to load function at run time.

629


How to execute a winrunner script in quicktest professional (qtp)?

521


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1675


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

702


What is expert view and keyword view?

625


Explain data driven framework?

579