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

Answers were Sorted based on User's Feedback



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

Answer / bantanahal haribabu

using regular exp=======
set Obj=New RegExp
Obj.pattren="[a-z]"
obj.global=true
set obje1=obj.execute(str)
for each letter in obje1
result=letter.value&result
next
print result

Is This Answer Correct ?    5 Yes 0 No

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

Answer / chaitanya

set Obj=New RegExp
Obj.pattren="[a-zA-Z]"
obj.global=true
set obje1=obj.execute(str)
for each letter in obje1
result=letter.value&result
next
print result

Is This Answer Correct ?    1 Yes 0 No

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

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

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

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

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

Answer / uday

A small correction in the above expression.
Obj.pattren="[a-z A-Z]"
which revers the string with any CAPs Letters also, else it
will ignore the CAPS Letter.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / pravati

str="This is india"
x=split(str," ")
for i=ubound(x) to 0 step -1
msgbox x(i)
next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Which scripting language used by quicktest professional (qtp)?

0 Answers  


can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance

2 Answers  


Explain about invoking of application?

2 Answers  


WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT

3 Answers   Wipro,


What is object repository in qtp?

0 Answers  


what difference between client and server applications exatly?

1 Answers   Honeywell,


How will you load few objects in Active Screen?

1 Answers  


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

0 Answers  


Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.

0 Answers  


How to create log file in qtp?

2 Answers   AppLabs,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".

2 Answers  


Categories