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

The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

3007


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

760


How to use output values in qtp ?

730


How is a Step generator used in UFT?

886


Hi, how can we check or avoid the memory leakage in QTP9.2?

1848


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1758


What is standalone database?

1981


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

2231


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

928


Can we Test Welcome Screens and Process Images with QTP

1665


How to use actions in qtp ?

768


what type of automation is follwed in the project?

1704


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1271


How do you test DLL files using automation Tool QTP?

2974


Where you are storing your script?

829