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 you mean by artifact,milestone...
Explain different type of event trigger option.
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
What is recovery scenario manager? When you go for recovery scenario manager?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz
In qtp, explain what is crypt object
Is it possible to call from one action to another action in qtp?
what function you write to do database testing with the help of qtp?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
How does you test a weblink which is changing dynamically?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
how did u use automating testing tools in ur job?
What is fragmentation and paging?
Explain measuring transaction.