VB.NET超简单的问题,分送上!!!!!!!
Dim str As String str = "asdf" If (str = null) Then '这边null是错误的,java有null关键字 End If
Dim str As String = "" str = "asdf" If str = null Then '这边null是错误的,java有null关键字 End If
[解决办法]
Dim str As String = VbNullStringDim obj As Object = Nothing'...'str = ....'obj = ....'...If str = VbNullString Then '...End IfIf obj Is Nothing Then '...End If
[解决办法]
Dim str As String str = "asdf" If (String.IsNullOrEmpty(str)) Then '这边null是错误的,java有null关键字 End If
[解决办法]
Dim str As String str = "asdf" If (String.IsNullOrEmpty(str)) Then '这边null是错误的,java有null关键字 End If
[解决办法]
Dim str As String str = "asdf" If (String.IsNullOrEmpty(str)) Then '这边null是错误的,java有null关键字 End If
[解决办法]
temp =null改成temp =nothing
[解决办法]
Dim str As Stringstr = "asdf"If (str = [color=#FF0000]String.empty[/color]) Then '这边null是错误的,java有null关键字End If