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

Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1800


Explain advantages and disadvantages kdf?

535


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

616


What is the use of an object spy tool in qtp?

568


How many types of recording modes in qtp?

600






i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

1588


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2463


Why to use descriptive programming?

577


What is system testing and what are the different types of tests you perform in system testing?

605


What is the registration process and examination fees?

562


What is Associate Repository in QTP 9.2 ?

607


what is the difference between modular framework & datadriven framework

1601


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1503


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1625


What is object spy in quicktest professional (qtp)?

546