Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this possible?
Message
From
29/03/2004 10:33:58
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
29/03/2004 09:52:16
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00890402
Message ID:
00890419
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform