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
How do you delete unwanted results in qtp?
Tell some commonly used Excel VBA functions?
Explain actions in qtp ?
What is a checkpoint? How many check points are there in qtp?
What is throw Object?
How to creating an output value using quicktest professional?
How do you configure QTP AND Test director?
How to carry out bit map check points in QTP
Explain in brief about the qtp automation object model (aom).
Explain the concept of object repository and how qtp recognises objects?
Why do we use breakpoints in QTP?
How to get Traceability matrix from TD?
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance
How many tabs are available to view your test in a test pane and what are they?
What is test object model in quicktest professional (qtp)?