Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Give object focus
Message
De
03/06/2003 15:22:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/06/2003 15:08:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00795842
Message ID:
00795855
Vues:
21
>so would it go something like this?
>
>if inlist(.......)
> return
>else
> messagebox(.......)
> validate = .T.
>endif

Something like this:
* TextBox.Valid()
if not inlist(...)
  MessageBox(...)
  return .F.
endif
Personally, however, I prefer the form design where the user can jump between different TextBoxes, and all rules for the record are validated when the user tries to save. This is easier to program, and can save the user some trouble, too.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform