Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus if validation code returns false
Message
De
02/07/1998 06:26:26
 
 
À
01/07/1998 16:18:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00113554
Message ID:
00113715
Vues:
24
>I have a lookup that returns .t. or .f. is a customer is found. If my code is in the valid method I get the "invalid input" message which I don't want. I have put the code in the lostfocus method to avoid this, but I cannot setfocus to the textbox if my lookup returns .f.. Any ideas ???? In FPW 2.6 I would put my lookup code in the valid and return .t. regardless of the outcome and use _CUROBJ = OBJUNUM() and then SHOW GET ENABLE and everything worked just fine. I looked at SBT Accounting Software code and they have an elaborate way of calling the gotfocus method from the lostfocus method and a hundred other functions to do this, but I don't think I have to spend a day writing functions to simply reset focus to the current object. Isn't there a simple way to do this ??????
>
>Thanks in advance !!!!!!

Use return 0 instead of return .f. in valid event.
Saludos,
A.G.P.
---------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform