Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to add codes to methods at runtime?
Message
From
15/09/2004 10:54:50
 
 
To
15/09/2004 09:58:13
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00942377
Message ID:
00942408
Views:
21

Is it possible to add codes to methods at runtime?


Yes.

Like you can define new Classes at runtime, you can update a class at runtime.

- CLEAR CLASSLIB from memory
- Open the VCX table with exclusive
- option: set tablebuffer
- locate the Class
- clear the objCode
- Change the Methods script
- option : tableupdate
- pack memo
- close the table
- COMPILE the vcx like a classlib

same process with a PRG class

A critical point is #INCLUDE .

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform