Difference entre null et "" pour un String
Salut!
j'ai une petite question...
j'ai ce but de code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Dim tempSN As String
tempPN = Mid(InputBox("Please enter ....", "...", Tsn), 1, 12)
If IsNull(tempSN) Then
MsgBox ("A value is required")
Else
If (tempSN = "") Then
Exit Sub
Else
....
End If
End If |
Pourquoi controler si tempSN est null et puis encore si il est "" ??
C'est quoi la difference?
Edit :
j'ai un autre exemple:
Code:
If (IsNull(champ.Value) Or champ.Value = "") = False Then ...
??