How to find given string is palindrome or not without using
strreverse() function?

Answer Posted / amiricks

Hi Nitin concept is correct but above code is not working fine
as it shows only not a palindrome....

here i have written one simple code any suggestions are most
welcome

val = Inputbox("Enter any string")
L= LEN(val)
for i = L to 1 step -1
v= mid(val,i,1)
va = va&v
Next
if val= va then
msgbox "Name is a Palindrome"
Else
Msgbox "Not a palindrome"
End if


Regards
Amit
umesh.amitkumar@gmail.com

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is virtual object supported in low level recording mode?

626


diff between qtp versions from 8.5

1571


What are the general steps involved in the data driven framework?

561


If you are testing a web application then what will you test in that application?

1544


How smart identification works in qtp ?

581






If object is not recognized by qtp but the object is standard object what is your approach?

596


What are the different ways to invoke an application using QTP?

650


Explain the concept of object repository and how quicktest professional recognises objects?

563


We stored into the objects OR and then write the scripting

1546


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1377


what is vmodel?advantages and disadvantages of vmodel?

1618


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

927


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

568


What is the use of ordinal identifier in qtp?

608


In qtp, explain what is qrs file?

588