Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The 'WriteMethod' Method.
Message
From
05/08/2003 11:19:05
 
 
To
05/08/2003 10:58:25
Michael Harris
Harris and Harris Consultants
Temple Hills, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00816895
Message ID:
00816910
Views:
23
Hi Michael

>Has anyone ever used the 'WriteMethod' method. I am trying to get a better understanding of it. The help says that it is used to write specified text to a specifid method. I understand that but what confuses me is that it is only available during design time..... Thanks.

As has been pointed out by others, the intention of WriteMethod() is so that you can programmatically add code to methods when creating objects in builders. This is not intended for run-time use and, in fact, there is no way to actually add code to a method at run time.

If this is what you are wanting to do, the best solution is to define a method that checks for the existence of, and runs when appropriate, a specific programme. You can create and compile programs at runtime very easily...
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform