comparing strings in vb

前端 未结 6 817
南方客
南方客 2021-01-17 08:06

Hopefully this should be an easy question. In java i think it\'s compareTo().

How do I compare 2 string variables to determine if they are the same?

6条回答
  •  鱼传尺愫
    2021-01-17 08:41

    I think this String.Equals is what you need.

    Dim aaa = "12/31"
                Dim a = String.Equals(aaa, "06/30")
    

    a will return false.

提交回复
热议问题