Bonjour,
Voici un exemple très simple :
Affiche 1,2 et 3.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Dim d As Object = Nothing If d Is Nothing Then MsgBox("1") End If If d = Nothing Then MsgBox("2") End If If 0 = Nothing Then MsgBox("3") End If
Quelle est la différence entre "is" et "=" ?
Nothing = 0 ?
Merci
Partager