Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this possible?
Message
De
29/03/2004 10:33:58
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
29/03/2004 09:52:16
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890402
Message ID:
00890419
Vues:
24
Hi Mike

As far as I know, you can't add code at runtime. What I do is add two properties in my column class that I use to addobject() my text box at runtime. Then you can subclass a textbox with the code you wish to run.


>I have a column member class that I use in my grids. The column member class adds a textbox class in the Init() event using Addobject().
>
>The textbox class has no code in its Valid() event. What I'd like to have happen is to somehow add code (at runtime) to the textbox's Valid() event so that a different validation is run for each column.
>
>I thought that the textbox's WriteExpression() method looked like a promising solution, however, it is only for design time :(
>
>Is there any way to do what I described?
>
>TIA
>
>VFP8SP1, Win200Pro
>
>Regards,
>
>Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform