Saturn
Saturn

Reputation: 18149

Proper way to compare strings and integers?

I suspect there is something wrong in my application, specifically in a part where I have to compare a couple strings and a couple integers.

I do something like this:

If myString = myOtherString Then
  do something
End If

And the same thing for integers.

However, for some reason, it is not returning true... also, I heard somewhere there were more proper ways to compare strings and integers. Can someone help me?

Upvotes: 0

Views: 1618

Answers (1)

Inisheer
Inisheer

Reputation: 20794

It doesn't look like anything is wrong with your code. I suspect there is something more, like the case of the string.

Upvotes: 1

Related Questions