How can we test existence of a particular word in scentence
using QTP tool.
Thanks in Advance!!!!!
Answer Posted / aiswaryan
By using "Instr" function u can do it.
InStr([start, ]string1, string2[, compare])
eg: MyPos = Instr(1, SearchString, SearchChar, 1)
msgbox MyPos
If Mypos returns a non-zero value, then the particular word
is present in a given string/sentence. If MyPos=0, then the
word is not present.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
How can i check items sorted or not in a weblist ? Give me the script for this...
What will be happen if i load object repository at run time, but it has already associated.
Explain the concept of object repository?
How u will do versioning in QTP?
Diff b/w test scenario's and test Procedures?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What is action? How many types of actions are there in qtp?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
what is the difference between data driver & data driven and driver script?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
What is different command used in command Prompt while using QTP?
Is virtual object supported in low level recording mode?
Write a QTP script to enter a keyword in to Google search engine?
On what document base Descriptive programming is written if build is not yet ready ?