Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple question
Message
 
À
19/06/1998 06:29:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00109835
Message ID:
00109853
Vues:
17
Besides having a modal window pop up to grab the value you could control it from a textbox. The Focus could be set to the box where they enter the supplier code when they first enter the form,, and your code is in the lostfocus, something like:

** Put your code to verify the supplier number if needed here
** for example if its ok then llpass=.t.

IF llpass
this.enabled=.f. && I've never been a big fan of making things vanish
thisform.txtNexttextbox.setfocus && If it's ok let them continue on in the form
ELSE
Wait Window "Invalid Supplier code - please re-enter!"
NODEFAULT && So they can't leave this field til they fill it in first
ENDIF

** You may want to make allowances for someone to be able to click a Close or **cancel button and not have to fill in a code if they are simply leaving...

--
JErry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform