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

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 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1914


What is qtpro? What is quick test pro? What is a quick test professional?

686


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1536


Hi How to retrieve data from web element line by line?

1658


What is the extension of the recovery scenario file in qtp?

632






what is description object?

1697


Tell me one scenario, the complex functionality you have automated in your project?

1571


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1870


How you can write contexts to text file in qtp?

676


How u will do versioning in QTP?

1533


what is stepin & stepout?

1508


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1470


can any one say that where we can download the QTP trail version ??????????

1452


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1936


Can we create user defined functions in qtp?

647