Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anybody tell me?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00118048
Message ID:
00118049
Vues:
22
>
>I used VFP3.0B. Does the following code correct if it run in VFP5.0?
>The textbox is bound to a field which data type is numeric.
>
>DEFINE CLASS txtTest AS Textbox
>     PROCEDURE Valid
>          IF This.Text > '90'              && Is it correct?
>               Wait 'Range Over' Window NoWait NoClear
>               RETURN 0
>          ENDIF
>     ENDPROC
>ENDDEFINE
>
If the field will be numeric, you would probably
1. default the value to 0
2. test for This.Value > 90 instead of This.text > '90"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform