Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field-Level validations and date fields
Message
 
À
13/11/1998 16:29:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157556
Message ID:
00157624
Vues:
17
>I would like to know how anyone is trapping dates for Y2K in VFP 5.
>If I enter a bad date in a date field and try to leave the field, I not only stay in the field, but I can't get an error message to fire at all. If I put field-level rules on the date fields I can't get it to fire: ddatefld <> {}.
>From my insight it seems that the database engine is validating dates before it gets a chance to hit the field-level rule.
>
>I just want a message to appear when the user puts in an invalid date.

Paige,

You are right when you think VFP is checking the data type before any other code runs. You can SET NOTIFY ON and the suer will get an "Invlaid Date" message in the status bar or a wait window if the status bar is shut off.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform