How to find given string is palindrome or not without using
strreverse() function?
Answer Posted / nitin jagjivan
Strng = "NITIN"
temp = "Pass"
dim arr()
Strng_Length = len(Strng)
redim arr(Strng_Length)
For i=1 to Strng_Length
arr(i-1)= mid(Strng,i,1)
Next
For i=1 to round(Strng_Length/2)
If instr(ucase(arr(i-1)),arr(Strng_Length-
i)) = 0 then
temp = "Fail"
End If
Next
If temp <> "Fail" then
msgbox "Given input is a palindrome"
Else
msgbox "Try another String, Not Pali"
End If
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
terminal services client
What is the difference between a Function and Procedure in QTP?
is it possible to add sheets to excel at runtime
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
Why qtp always start action1 and does not start action?
How to write business scripts using object repository with different scenarios
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
Why bpt?
Will down time for server and content maintenance/upgrades be allowed? how much?
How is the Bitmap checkpoint different from Image checkpoint?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
How does qtp identify gui object?
How did you use regular expressions in QTP and also in WR?