If <condition> Then Else
If <condition> Then Else End If
If (List2.List(1) <= Date) Then A2.Caption = "Alarm !" If List2.List(2) = Date Then A3.Caption = "Alarm !" If List2.List(3) = Date Then A4.Caption = "Alarm !"
If <condition> Then Else End If
If <condition> Then Else End If
Private Sub verifier_Click() ' vérifie si la date et (<=) et renvoi "Alarm !" If (List2.List(0) <= Date) Then A1.Caption = "Alarm !" ElseIf (List2.List(1) <= Date) Then A2.Caption = "Alarm !" ElseIf List2.List(2) = Date Then A3.Caption = "Alarm !" ElseIf List2.List(3) = Date Then A4.Caption = "Alarm !" Else ' renvoi "En cours si la date est (>) à la date du jour If (List2.List(0) > Date) Then A1.Caption = "En cours..." If (List2.List(1) > Date) Then A2.Caption = "En cours..." If (List2.List(2) > Date) Then A3.Caption = "En cours..." If (List2.List(3) > Date) Then A4.Caption = "En cours..." End If
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question'Exemple Select Case Label1.Caption Case "toto" 'Code - le text contenu dans le caption du label1 est "toto"... Case "hello world !" 'Code Case "j'aime les champignons" 'Code Case Else 'Code End Select
'Exemple For i = 0 To List2.ListCount - 1 If List2.List(i) <Date Then Label1(i).Caption "Alarm !" Else: Label1(i).Caption = "En cours..." Next