Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5: SetFocus
Message
 
À
01/05/1997 23:30:33
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00030568
Message ID:
00030585
Vues:
28
>Hi All,
>
>If data entered in a combo box is not valid, how should I set cursor staying in the combo box until it is valid.
>
>I used the following code in the Valid method:
>
>If !SEEK(code, "codetable")
> wait window "Not valid code"
> RETURN .F.
>ENDIF
>
>I thought if I use RETURN .F. the cursor will not leave but it does not work. Could anybody tell me why?
>
>Jim

are you sure your codetable has the proper index set?
anyhow, i'd recommend using this code in the lostfocus event and setting the combo box as a list box (so users can only pick from list, not enter anything).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform