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

Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

0 Answers  


Which scripting language used by quicktest professional?

0 Answers  


Hi to All, My name is Aditya, i have 4 year exp in software testing (Manual Testing), but i try to shift my career now in automation testing. right now i have no exp or u can say i am not hand exp in live application. So please guide me, what i do ???? Can i join again automation course only practical which is live application. if u know any person who's expert in qtp and he/she ready to take my class i have our own and company laptop. If required i will pay amount please don't mind. Please help me, and i am also planing to join core java from coming 1st Aust (in seed) for only purpose the understanding script of Automation (QTP)... Please help me... I am waitting u r replay... Thank you Thanks again

5 Answers  


where the check points are stored ?

3 Answers   IBM,


How to handle the exceptions using recovery scenario manager in QTP?

1 Answers   Crea,






what the difference between shared repository and per action repository?

0 Answers  


Hi .. i want to write the script for the combo nox list . For example if any combo box having a multipul itme. So how can i retrive each item for each iteration ? help me out .

2 Answers  


How can we import a Open Office excel file in QTP

4 Answers  


how to recall a function in QTP?

3 Answers   Ordain Solutions,


Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

0 Answers   TCS,


Categories