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 to find Operating system information using QTP script?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
What is the difference between analog and low level recording?
In qtp, how you can get the last character from a string?
Limitations in QTP?
What is the basic concept of quicktest professional (qtp)?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
In qtp is it possible to check broken links of a page?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
How to test background color and dynamic images during run time can you put the check point for moving objects?
What is a recovery scenario?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Step 3&4 are repeated until an the object in recognised uniquely.
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?