Verification of Palindrome using VBScript

A palindrome is a word, sentence, verse, or even number that reads the same backward or forward. For example- ATATA, BOB, 12321

In order to verify a string for the palindrome using VBScript, first you need. to reverse it and then compare it with the original value to check if both are equal. If both the values are equal then it can be called a Palindrome.

Example code: Verification of Palindrome using VBScript
Function isPalindrome()

    Dim oStr
    If oStr=fStr Then
        Print "The Given String "&oStr&" is a Palindrome"
        bPalindrome= true
        Print "The Given String "&oStr&" is not a Palindrome"
    End If
End Function

You may also read

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.