VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

<% On Error Resume Next SiteStats() %>

Sponsors


More...


StrReverse Function

    '==============================================================
    'StrReverse Sample                                            '
    '==============================================================

    'Description    Returns a string in which the character order of
    '               a specified string is reversed.
    
    'Syntax         StrReverse (string1)
        
    '               Part            Description
    '               ================================================
    '               string1         The string whose characters are
    '                               to be reversed. If string1 is a
    '                               zero-length string (""), a
    '                               zero-length string is returned.
    '                               If string1 is Null, an error occurs.
    
    Dim myString
    Dim myReversedString
    myString = "Radar"
    myReversedString = StrReverse(myString)
    If LCase(myReversedString) = LCase(myString) Then
        MsgBox "The string is an Anagram!" & vbCrLf & vbCrLf & "Regular String: " & myString & vbCrLf & "Reversed String: " & myReversedString, vbInformation, "StrReverse Sample"
    Else
        MsgBox "The string is not an Anagram." & vbCrLf & vbCrLf & "Regular String: " & myString & vbCrLf & "Reversed String: " & myReversedString, vbInformation, "StrReverse Sample"
    End If
 

VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!