Results 1 to 2 of 2

Thread: equivalence with letter sensitive

  1. #1
    sjb
    Guest

    equivalence with letter sensitive

    hi ,

    I want to match 2 variables , so that it will be case sensitive if the variables differ in any character the result will be false

    for example

    car=CAR ' false


    thanks

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    not sure I understand u correct sjb, but if u do like this:

    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim s1 As String
    3.     Dim s2 As String
    4.     s1 = "car"
    5.     s2 = "CAR"
    6.     If s1 = s2 Then
    7.         MsgBox "Match!"
    8.     Else
    9.         MsgBox "NO Match!"
    10.     End If
    11. End Sub
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width