Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Entering invalid dates
Message
 
À
04/06/2001 14:45:31
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00514752
Message ID:
00514907
Vues:
10
Elyse,
Do you have a method of forcing the active control's Valid() code to run when you click a toolbar button? VFP behavior is to NOT process the Valid() code if a form is closed from an outside procedure. Most frameworks call a function that does this and there are several methods given in various threads. My recollection is that you need to call the SetFocus() method of the activecontrol

Barbara

>My users are complaining that if they enter an invalid date in a textbox and then try to save the form by clicking on the toolbar button without leaving the field, the record is saved with an empty date. What's the best way to keep them in the field and warn them of the invalid date entry?
>
>Thanks,
>Elyse
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform