How to find given string is palindrome or not without using
strreverse() function?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nitin jagjivan
Strng = "NITIN"
temp = "Pass"
dim arr()
Strng_Length = len(Strng)
redim arr(Strng_Length)
For i=1 to Strng_Length
arr(i-1)= mid(Strng,i,1)
Next
For i=1 to round(Strng_Length/2)
If instr(ucase(arr(i-1)),arr(Strng_Length-
i)) = 0 then
temp = "Fail"
End If
Next
If temp <> "Fail" then
msgbox "Given input is a palindrome"
Else
msgbox "Try another String, Not Pali"
End If
| Is This Answer Correct ? | 5 Yes | 3 No |
How to load a object repository in QTP during runtime?
2 Answers BNP Paribas, Virtusa,
How to define array in qtp?
How to handle Dynamically changing Objects in QTP?
What is time parameter?
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...
what is On Error Resume Next ?
Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya
How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box
Is the provision for integrating QTP with QC ,available from the version 9.0 onwards only or even 8.2 version has such provisions?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?