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
What is the difference between per-action and shared?
What is the syntax to call one script from another?
Explain xml checkpoints.
if numbers are always changing write a script for that
What the differences are and best practical application of Object Repository?
What are the types of object repositories? Which one is you are using?
what QTP Options do you know?
How can you exit from an action?
Explain the concept of object repository & how qtp recognizes objects?
How many types of parameters are there?
Explain hybrid framework with advantages and disadvantages?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
Can you brief the hurdles you faced during Automation testing?
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?