how to reverse a string with out using string or predefined
function,ex:string is " i love india". the output should be
like this "i evol aidni"
Answer Posted / lak
str=" i love india"
Set regExpObj=new RegExp
regExpObj.pattern="[a-z A-Z]"
regExpObj.global=true
Set matches=regExpObj.execute(str)
For each letter in matches
result=letter.value&result
Next
msgbox result
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the challenges you faced during you entire life automation ?
What are the factors on which script execution time is dependent?
give me an example where u used good judgement and logic in solving a problem
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
how can we do the frame work in qtp
How do you create regression test packs?
How to replay a script in qtp?
what type of framework u r using in ur organization
Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma
How to modify object property in qtp ?
Why is action split used by qtp?
Explain the difference between data driven testing and parameterization ?
How will you test a stapler?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!