Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to add codes to methods at runtime?
Message
De
15/09/2004 10:54:50
 
 
À
15/09/2004 09:58:13
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00942377
Message ID:
00942408
Vues:
22

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform