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
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
What are the types of object repository in qtp?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
what is meant by source control?
What is smart identification in QTP?
If I change the property value at runtime is it effect is object repository?
how to test Web application using QTP software
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
what is object and child object.. explain ..if possible give some example for better understanding ..
What are main panes available in qtp test browser?
How is a Step generator used in UFT?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
what is defenetion of kiran can u tell me plz CVS, SVN