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 |
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
Which scripting language used by quicktest professional?
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
where the check points are stored ?
How to handle the exceptions using recovery scenario manager in QTP?
what the difference between shared repository and per action repository?
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 .
How can we import a Open Office excel file in QTP
how to recall a function in QTP?
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?
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...
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