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

How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

635


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1660


In what occasion we can specify global sheet and action sheet?

649


Name the properties you would use for identifying a browser and page when using descriptive programming?

632


Can any suggest me what is exposure testing?

1464






What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1599


Explain how to use QTP to check broken links on a page?

677


can u explain relative path architecture framework in qtp?

1638


How many ways is to parameterize the value?

697


How to data driven test for Win objects in QTP ?

1549


can the activities of test case design be automated?

1546


What is object spy in quicktest professional?

709


What are the different recording modes and how do they work?

703


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1840


What is object repository in qtp?

644