how to reverse the string without using bultin functions(i.e
mean mid,len ,reverse functions)
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
Which scripting language used by quicktest professional (qtp)?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
Explain about invoking of application?
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT
What is object repository in qtp?
what difference between client and server applications exatly?
How will you load few objects in Active Screen?
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?
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.
How to create log file in qtp?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
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".