write the code to reverse a string without using Strrev
built in function.
Answer Posted / uday
All the above answers uses one the other string functions
like mid, len, instr.
But we can reverse a string without using any string functions.
Looks interesting? Try the below code:
str="Hello Uday"
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
print result
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
what is the mail use of frame work(with detail). architecture for keyword driven frame work
What are the steps involved in the recovery scenario wizard?
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?
Why qtp always start action1 and does not start action?
How to customize qtp?
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
Get the count of files of similar types from a folder.
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
Explain the terms test and business component?
When to use shared and local object repository?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
What are the different types of functions available in qtp and explain ?
What are the check points can be inserted without recording?
How to suppress warnings from the test results page?
What are the views available in quicktest professional (qtp)?