How to find given string is palindrome or not without using
strreverse() function?
Answer Posted / 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 |
Post New Answer View All Answers
How to create scenario selector
Can any one send me the QTP Basic Coding Samples?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
How the exception handling can be done using quicktest professional?
What is checkpoints for quicktest professional?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
What is qtpro? What is a quick test professional?
What is the use of running the scripts in Hidden-mode in UFT?
Can any suggest me what is exposure testing?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
How to break the object spy ?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
Explain in brief about the quicktest professional (qtp) automation object model?