Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Required Fields?
Message
De
17/01/1997 09:57:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00017517
Message ID:
00017657
Vues:
66
>>You can also do something like, in Lostfocus:
>>
>>if empty(field)
>> =messagebox('Must input value',etc)
>> nodefault
>> object.setfocus (back to field)
>>endif
>
>Hmm...I tried this and it worked. I tried the exact same code before without the 'nodefault' and it didn't work.

this is because when after your call to the set focus the execution returned to the lostfocus which continued to do what it should - lose the focus , when you speicify nodeafult it doesn't execute the default behaviour thus it doesn't loses focus

Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform