我的If
情况有什么问题?
If Not IsEmpty(Wrkgps_L3) And Not IsEmpty(Wrkgps_L4) Then
Wrkgps_L3L4 = Wrkgps_L3 & "," & Wrkgps_L4
End If
Not
条件似乎不起作用。If
即使两者都是空字符串Wrkgps_L3
,语句中的代码也会被执行。Wrkgps_L4
更新:
Wrkgps_L3
并且Wrkgps_L4
是包含从函数返回的结果的变量。IsEmpty(Wrkgps_L3) = False
我注意到了Wrkgps_L3 = ""
。我不得不重写我的代码
If (Wrkgps_L3 <> "") And (Wrkgps_L4 <> "") Then
无论如何,我仍然很想知道为什么IsEmpty
对变量不起作用""
?