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

1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1420


How to run a test using quicktest professional (qtp)?

533


hou can we use vb script in qtp could u tell me breafly

1729


What is the process of synchronizing qtp and aut?

564


Does QTP run in any environment?

602






What is different command used in command Prompt while using QTP?

1736


How you are developing the script? Using record and play back or manual?

624


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1268


Will down time for server and content maintenance/upgrades be allowed? how much?

607


Where you get the run time data table?

575


give me an example where u used good judgement and logic in solving a problem

3346


Write a script to verify font style and color of a windows object using descriptive programming

829


What is the use of text output value in quicktest professional?

499


What is the registration process and examination fees?

543


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1405