Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add or alter a method to an object by code?
Message
From
19/05/1999 19:55:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220647
Message ID:
00220653
Views:
24
>I created a class object called WsLink.
>It is based on a label object.
>
>In my code, I add this object on my _SCREEN using the ADDOBJECT command. Fine. Now I can alter its properties:
>_SCREEN.WsLink.Caption = "Hello" for example
>
>My question is : How can I add some code in the clic event for example?
>
>Thanks
>Eric.

You can only do it in the VFP environment, it won't work in the run time...

oControl.WriteMethod('Click','_Screen.ActiveForm.DoThatThing()')

This is generally used in builders and other development tools, as I said, it will not work in your compiled program.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform