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
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...
Explain advantages and disadvantages kdf?
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.?
What is the use of an object spy tool in qtp?
How many types of recording modes in qtp?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
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
Why to use descriptive programming?
What is system testing and what are the different types of tests you perform in system testing?
What is the registration process and examination fees?
What is Associate Repository in QTP 9.2 ?
what is the difference between modular framework & datadriven framework
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
What is object spy in quicktest professional (qtp)?