Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation in lost focus()
Message
De
05/03/2002 04:58:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/03/2002 04:41:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00628264
Message ID:
00628267
Vues:
16
>HI,
>
>I am facing problem. If I am using valid event to valid some text than its validating when pressing enter key or selecting through mouse. If I accepting default value and leaving field its does not do any validation since valid even fire only at any changes.
>
>If i keep validation code on lostfocus its fires when i loose focus by tab key. But in this case if validation return false cursor shoul stay on same filed untill it become tru.
>
>How can I do the same as setfous on same text not accepting....Please help.
>
>TIA
>Sajjad

Sajjad,
Add a nodefault and this.setfocus. ie :
*Lostfocus
*...
if FailedToValidate
 nodefault
 this.SetFocus()
else
*...
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform