2010-12-09 4 views

Répondre

6
if a <> 0 then 
    ' code 
end if 
1

une autre façon :)

Dim a As Integer = 3 
    If Not (a = 0) Then 
     Console.WriteLine("is not equal") 
    End If 
+0

j'ai un broblem je veux supprimer la zone de liste mais il sortirai quand le val est « 0 » Comment puis-je écrire qu'il va supprimer jusqu'à ce que la zone de liste sera vide –

+0

Private Sub ListBox1_DoubleClick (expéditeur de ByVal comme System.Object, ByVal e comme System.EventArgs) Poignées ListBox1.DoubleClick poissons Dim, Dvash, shipod, Kalamar, Shrim As String poissons = "poissons" Dvash = " dvash " shipod = "Shipod" Kalamar = "Kalamar" Shrim = "Shrim" Si ListBox1.Items = poisson ou Dvash Ou shipod Ou Kalamar Ou alors Shrim ListBox1.Items.RemoveAt (ListBox1.SelectedIndex) End If –