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

Answer Posted / kishan

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

option Explicit

Dim Str, Reverse, i

Str = "India"
Reverse = ""

msgbox len(Str) 'returns 5

for i=len(Str) to 1 step -1

Reverse=Reverse&mid(Str,i,1)

next

msgbox Reverse

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Environment Variable in UFT and its uses?

612


When should I use smart identification?

606


Explain step generator in qtp?

651


Which recording modes need more memory?

589


What is the difference between the keyword view and expert view?

528






Write a QTP script to enter a keyword in to Google search engine?

653


Hi,All How to create a link in excel sheet using qtp

3003


I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2471


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1482


What are some test assets and related extensions of qtp?

557


How can get count of list box?

637


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625


Problem with XML checkpoint in QTP ?

3509


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1587


What are the different types of recording modes?

542