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 / sreenu

Dim str,arr
str = "i love india"

m=split(str," ")

For k=lbound(m) to ubound(m)
mystr=m(k)

strlen = len(mystr)
ReDim arr(strlen)
For i = strlen to 1 step -1
arr(i) = mid(mystr,i,1)

x = x & arr(i)

Next
x=x&" "
Next
msgbox x

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to record a qtp script ?

548


wt is the use of multiple questions in QTP

1671


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1661


How to get the particular property value?

606


What is an optional step in qtp ?

629






Can we record using all the modes in a single script? Explanation with example is appreciated

1379


Explain about the test fusion report of quicktest professional (qtp)?

535


Why is Client side image is preferred over server side image?

1435


How to give a call to another action from one action?

622


What is qtpro? What is a quick test professional?

579


For which type of project the iterative model is suitable?

1372


How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is

6299


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1562


What is standalone database?

1742


How many lines of code in each script of QTP?

4030