Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I build a method on the fly?
Message
From
24/10/2002 18:13:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714534
Message ID:
00715191
Views:
17
Thanks, that worked..
Sandi
>Create a class based on the type of control you are considering... textbox, combobox, etc...
>
>In that class, put code in its InteractiveChange method with whatever "qualifier" you need to allow or disallow the process from happening. Something like this maybe...
>
>
>FUNCTION MyTextBox.InteractiveChange
>    IF ATC( "SomethingYouAreLookingFor", THIS.Name ) = 0
>       */ Not one of the controls you need the special
>       */ handling for... just return
>       RETURN
>    ENDIF
>
>    */ Ok... it is one of the "special" classes you need to control
>    */ Add code here...
>
>ENDFUNC
>
>
>Then, in your table that dynamically adds controls (which I assume has the type of control to be added), just let that column represent this NEW class just created.. ie: Instead of addobject( "combobox"...), AddObject( "MyCustomCombobox"...)
>
>Hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform