Clipper - problème avec boucle IF

Résolu
jfdumais Messages postés 2 Date d'inscription   Statut Membre Dernière intervention   -  
jfdumais Messages postés 2 Date d'inscription   Statut Membre Dernière intervention   -
IF TYPEUN = "FGPVC 1" .OR. TYPEUN = "FGPVC 2" .OR. TYPEUN = "FGPVC 3" .OR. TYPEUN = "FGPVC 4" .OR. TYPEUN = "FGPVC 5" .OR. TYPEDEUX = "FGPVC 2L" .OR. TYPEDEUX = "FGPVC 3L" .OR. TYPETROIS = "FGPVC 3LB" .OR. TYPEDEUX = "FGPVC 3A" .OR. TYPEDEUX = "FGPVC 4A" .OR. TYPEDEUX = "FGPVC 5A" .OR. TYPEDEUX = "FGPVC 10" .OR. TYPETROIS = "FGPVC 10B" .OR. TYPETROIS = "FGPVC 10C" .OR. TYPETROIS = "FGPVC 20B"

Voilà ma condition ?

Quand j'essaye de compiler, ca me sort une erreur ASSIGNMENT error sur cette ligne.

Est-ce que j'ai une erreur dans la manière de l'écrire, est-ce que c'est trop long ?

2 réponses

jackom Messages postés 62 Date d'inscription   Statut Membre Dernière intervention   16
 
ouvre une parenthèse apré IF et tu la ferme à la fin de la condition, ensuite tu met chaque condition interne entre () exemple IF ((TYPEUN="FGPVC 1")or(.....
0
jfdumais Messages postés 2 Date d'inscription   Statut Membre Dernière intervention  
 
J'ai réglé le problème en séparant les conditions ... on driait que c'était vraiment que c'était trop long.
0