开发者

Inequality Comparison Operator in VB?

In C I write an if statement like:开发者_开发技巧

if (a != 0)

How do I write this != operator in VB?


if a <> 0 then
  ' code
end if


another way :)

    Dim a As Integer = 3
    If Not (a = 0) Then
        Console.WriteLine("is not equal")
    End If
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜