Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to add a valid method to a container?
Message
 
À
21/01/2005 15:36:40
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
00979025
Message ID:
00979440
Vues:
11
This message has been marked as the solution to the initial question of the thread.
What I wound up doing (thanks to Fabio's link) was to do the validation in the Lost Focus of the container (like I was before). However, if the validation fails, then I added a NODEFAULT. That seemed to do the trick.

Thanks for your suggestion though!

Rodd

>>Hello Sergey,
>>
>>Sorry about the confusion. What I meant to say was that Yes, I want to allow the user to click on the button that is part of my control but No, I do not want to allow the user to click on any other buttons on the form that are NOT part of the control.
>>
>>In other words, if the form has 2 controls on it, 1 - a Save button that commits the changes that have been made and 2 - my control (which contains a textbox and button), the user should be allowed to click my control's button with invalid data to pop up a list of valid options but should not be allowed to press the Save button.
>>
>>Hope that makes more sense.
>>
>>Rodd
>
>Rodd,
>
>Can you do your validation in the lostfocus of your textbox and, if the data is invalid, call the click of your button?
>
>HTH,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform