Instructions ifthen

Résolu
Toums91 -  
arthurc Messages postés 27 Statut Membre -
Bonjour,

Je voulais savoir s'il était possible à partir d'une fonction Ifthen de produire plusieurs instructions ou résultat.
Par exemple : If then NJ = 0 And Natsup = "" Then
TextBox99 = 0 And TextBox98= 0
End If

Est ce correct?

Merci

2 réponses

  1. Oz' Messages postés 180 Statut Membre 63
     
    Salut, précise ton langage (ça ressemble à du vb ça ?)
    0
  2. arthurc Messages postés 27 Statut Membre 4
     
    Salut,

    En mettant sur deux lignes et sans le AND ca devrait fonctionner
     If NJ = 0 And Natsup = "" Then 
    TextBox99 = 0 
    TextBox98= 0 
    End If 
    
    0