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
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
How to use parameterization in qtp?
when u script reveiwing in which area u more concentrates?
How do we handle run-time errors?
what testplan contents and what test strategy contents,what is the diff b/w them
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
How can you close the second opened browser?
What are the different types of recording modes in qtp? Which will be used when?
What ate the Technologies supported by QTP?
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
hou can we use vb script in qtp could u tell me breafly
Approach for Installation,comaptibility,system testing
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?