Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding methods
Message
De
15/12/1998 09:27:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00167364
Message ID:
00167633
Vues:
19
Hi Thom ---

Answers: No and No. You can't move a class DEFINEd with DEFINE CLASS to a VCX and you can't add methods programatically (although you can WriteMethod to previously defined methods)

You *might* want to experiment with adding PROC..ENDPROC method code to the Methods column in the VCX and then recompiling the VCX but that's a bit on the dangerous side (you could corrupt the VCX).

Perhaps if you explained why you have this need there may be alternative architectures to address it.


>Yes, I saw that function yesterday, but more importantly, I need to know if I can add the METHOD to the CLASS programmatically before I use the WriteMethod().
>
>If I use the DEFINE CLASS command, will I have the ability to save this new class to a .VCX file? If so, I could then use the WriteMethod() function to add my methods to the class.
>
>Thanks for your assistance.
>
>>Thom,
>>
>>At design time you can use WriteMethod() to fill in a method.
>>
>>>Can a method and code for that method be added to a class programatically? As an example, some functions or procedures that are in an .PRG file that I would like to add to a CLASS as methods?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform