Char的问题
Dim V_char As Char
If V_char.ToString() = String.Empty Then
Response.Write( "A ")
Else
Response.Write( "B ")
End If
'为什麽会输出B, 如何修改If条件才能输出A
[解决办法]
V_char的赋值是什么?
[解决办法]
V_char.ToString()当然不等于String.Empty
[解决办法]
Dim V_char As Char
If V_char = Nothing Then
Response.Write( "A ")
Else
Response.Write( "B ")
End If
[解决办法]
楼上正解