Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF..ELSE..ENDIF statement
Message
De
02/11/1997 22:38:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
IF..ELSE..ENDIF statement
Divers
Thread ID:
00057913
Message ID:
00057913
Vues:
85
Dear all,

I need all the help I can get.Please do help. THanks in advance.
Here's my problem.

DO WHILE thisform.check = .f.
thisform.aperiod = thisform.aperiod + 1
if thisform.aperiod > acperiod
thisform.aperiod = 1
thisform.ayear = thisform.ayear + 1
endif
thisform.i = thisform.i + 1
[ if thisform.text2.value = thisform.aperiod and;
thisform.text4.value = thisform.ayear
thisform.check = .t.
endif]
ENDDO

Logically I think the part with [] works but something weird
happens instead, I do not know where I go wrong.
GIven thisform.aperiod the value of 10 and thisform.ayear=1997,
thisform.text2.value = 10 and thisform.text4.value = 1998
when it reached the checking part [] the
thisform.ayear's value is changed back to 1997 causing
an endless loop. Why does the IF..ELSE..ENDIF statement
not working?

Dora
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform