how to reverse the string without using bultin functions(i.e
mean mid,len ,reverse functions)

Answer Posted / gabbar singh

Just handling special chars also. addition to chaitanya's answer

Set r=new regexp
r.global=true
r.pattern="[a-z A-Z 0-9 \W]"
srcstring="sdsd1212@!@"
Set s=r.execute(srcstring)
For each letter in s
result=letter.value&result
Next
msgbox result

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use transactions in qtp?

565


If created one virtual object? Next time I changed the window position will it work?

585


diff between qtp versions from 8.5

1573


What environment does qtp run in?

628


Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

3254






How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3446


How to export quicktest professional results to an .xls file?

576


Both static and dynamic arrays are handled by the vb script. Is it true?

565


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1856


How to recognise the webelement and verifying that webelement is enabled?

1652


how will you check how many members visited the website www.infosys.com?

1484


how u will evaluate the tool for test automation?

1373


images are dynamically changes how to compare two images with out using the bitmap

2009


What is the difference between run time object and test object in QTP?

570


What are the differences between quicktest professional (qtp) and winrunner?

577