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


Please Help Members By Posting Answers For Below Questions

what is the mail use of frame work(with detail). architecture for keyword driven frame work

1407


What are the steps involved in the recovery scenario wizard?

550


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?

3489


Why qtp always start action1 and does not start action?

594


How to customize qtp?

601






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.

1617


Get the count of files of similar types from a folder.

964


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????

2144


Explain the terms test and business component?

540


When to use shared and local object repository?

622


can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

1407


What are the different types of functions available in qtp and explain ?

560


What are the check points can be inserted without recording?

590


How to suppress warnings from the test results page?

595


What are the views available in quicktest professional (qtp)?

563