Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If statement
Message
De
19/10/2004 17:42:57
 
 
À
19/10/2004 16:09:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00952761
Message ID:
00952820
Vues:
12
if thisform.pagefram1.page1.text1.value>2 OR  thisform.pagefram1.page1.text1.value < 0
indicates that 0 is a legal value. Your messagebox says from 1 to 2.

Was the value 0 when you tested this????

The arguements to the BETWEEN function set the upper and lower limits. A value that matches one of them results in the statement evaluating to TRUE. Make sure that the arguements represent the actual range of acceptable results.

For testing purposes, you might also consider putting something like
=messagebox("Congratulations, you've entered a correct value")
in the ELSE block.


>hi,
>
>i try to do this statment but nothing happend
>
>thisform.pagefram1.page1.text1.setfocus
>
>
>If NOT BETWEEN(thisform.pagefram1.page1.text1.value,0,2)
>       =messagebox("the range from 1 to 2 only")
>       thisform.pagefram1.page1.text1.setfocus     && nothing happend
>else
>......
>endif
>
>thanks
>m.qasem
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform