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


Please Help Members By Posting Answers For Below Questions

How to create scenario selector

1485


Can any one send me the QTP Basic Coding Samples?

1614


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

1503


How the exception handling can be done using quicktest professional?

545


What is checkpoints for quicktest professional?

551






Suggest and Define a solution for an application whose objects are not recognized by UFT?

676


What is qtpro? What is a quick test professional?

587


What is the use of running the scripts in Hidden-mode in UFT?

688


Can any suggest me what is exposure testing?

1382


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)

1018


How to break the object spy ?

664


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?

1477


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

1426


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1421


Explain in brief about the quicktest professional (qtp) automation object model?

573