为什么第一个if语句评估为true?我知道如果我使用"是"而不是"="那么它将不会评估为真.如果我将String.Empty替换为"Foo",则它不会评估为true.String.Empty和"Foo"都有相同类型的String,那么为什么一个评估为true而另一个不评估?
//this evaluates to true
If Nothing = String.Empty Then
End If
//this evaluates to false
If Nothing = "Foo" Then
End If
Run Code Online (Sandbox Code Playgroud) 在VBA中,如果我比较字符串或类似字符串vbNullString而不是空字符串,它会有什么不同; ""?如果是这样,两者之间有什么不同?