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

what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1476


What is the difference between the keyword view and expert view?

532


Explain xml checkpoints.

614


how to write xml output check point bu useing descriptive programing .means without useing output check point

1659


What is the descriptive programming?

1518






what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1974


How many types of actions are there in quicktest professional?

518


What is difference between design time and run time data table?

591


What is the expert view?

559


How qtp recognizes the object?

681


Explain different type of event trigger option.

549


What is text/text area checkpoint?

572


How many types of recording modes in qtp? Describe each type with an example where we use them?

627


Why bpt?

607


What are the different properties of an web object

1434