Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mandatory data input
Message
De
27/05/1999 07:42:17
 
 
À
27/05/1999 07:34:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00223352
Message ID:
00223354
Vues:
18
Why not put the code just in the LostFocus ot Valid events of the individual controls?

Arnon

>Hello:
>
>I have a form that users must mandatory entries into textboxes
>before they exit the screen and move on to another screen.
>
>For example:
>
>If empty(act_plan.startdate)
>=messagebox("You must enter a Startdate for your Intervention!", 48, "CATS")
> this.parent.text1.setfocus()
>Endif
>
>I have this code in the save button and if nothing entered it sets focus to that field until something is entered. I also have this code in the exit button on the form. If they inadvertly hit the exit button I get the message, it doesn't set focus to the textbox
>and continues on and releases the form.
>
>How can I ensure that they fill this textbox and not exit the screen
>screen? Does this code belong in the "valid" of the textbox as well?
>Any input would be appreciated.
>Thanks.
>
>Sheena
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform