Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I build a method on the fly?
Message
 
To
23/10/2002 16:13:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714534
Message ID:
00714614
Views:
21
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
Next
Reply
Map
View

Click here to load this message in the networking platform