Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only