how to reverse a string with out using string or predefined
function,ex:string is " i love india". the output should be
like this "i evol aidni"

Answer Posted / lak

Reverse a string without using String Functons
(mid,split,len..)

str=" i love india"

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

msgbox result

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please any one can explain the keyword driven framework. with gmail example.

1616


Explain quicktest professional testing process?

557


What are the major/ important methods, functions in QTP we use realtime testing

2259


wt is the use of multiple questions in QTP

1671


In qtp, explain what is crypt object

591






HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1620


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

702


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1486


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1735


What is the pros and cons between QTP and Rational Robot

3278


What are the key points to create a framework in QTP for oracle forms?

1802


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

23900


How would you export a script from one pc to another in qtp?

653


Dis advantages of XML checkpoint ?

1573


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1915