Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus problem
Message
 
À
17/10/2001 15:16:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00569234
Message ID:
00569877
Vues:
16
>>>[snipped]
>>Move it to .Valid() method like this:
>>
>>*Valid() method
>>IF ! "Dr" $ This.Value
>> =messagebox('This list should be Doctors only.',16,'Go Back')
>>RETURN 0
>>ENDIF
>
>It doesn't seem to work for me when I have ON ERROR ... on the form. What can I do? Even the -1 doesn't work either.

Does it work without ON ERROR routine? ERROR routine might return you to another place. RETURN -1, as Sergey says will shift the focus to the previous control in a tab order.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform