VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Compare two strings and return 0 if they are equal (not case specific)

by John Flaherty (5 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 15th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Compare two strings and return 0 if they are equal (not case specific)

Rate Compare two strings and return 0 if they are equal (not case specific)



    'Zero will be returned in this example as StrComp is not case specific
    If StrComp("c:\John", "C:\JoHN", vbTextCompare) = 0 Then
        MsgBox "yep"
    End If
End Sub


Download this snippet    Add to My Saved Code

Compare two strings and return 0 if they are equal (not case specific) Comments

No comments have been posted about Compare two strings and return 0 if they are equal (not case specific). Why not be the first to post a comment about Compare two strings and return 0 if they are equal (not case specific).

Post your comment

Subject:
Message:
0/1000 characters