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
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
精彩评论