bonjour
pour me coucher moins bête ce soir, auriez vous l'amabilité de m'expliquer pourquoi le code suivant :
me donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 Dim a, b As Integer a = 0 b = 12 If a = Nothing Then Label1.Text &= "a vaut nothing : valeur : '" & a & "'<br/>" Else Label1.Text &= "a NE vaut PAS nothing : valeur : '" & a & "'<br/>" End If If b = Nothing Then Label1.Text &= "b vaut nothing : valeur : '" & b & "'<br/>" Else Label1.Text &= "b NE vaut PAS nothing : valeur : '" & b & "'<br/>" End If
0 = Nothing ?!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 a vaut nothing : valeur : '0' b NE vaut PAS nothing : valeur : '12'
Partager