Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Code Programmatically
Message
De
17/10/1998 16:50:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00147160
Message ID:
00147835
Vues:
31
>Any ideas on how to add method code
>programmatically?

If you mean adding it at design time (for conversion purposes, or builders/wizards), it depends on what are you adding. If the method which you fill with code already exists in the class definition, just stuff the new code into a string and call the WriteMethod(lcSourceString) - which you can do from a builder, or by having an instance of the object in memory.

If it's a method which never existed, i.e. a custom method, you will need to add a reference to it into the Reserved3 memo of the appropriate record in the vcx/scx file, reinstantiate the object, and then you may proceed as in the first case.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform