Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding methods
Message
 
À
15/12/1998 09:27:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00167364
Message ID:
00167647
Vues:
22
Sure, thanks fort the reply John,

I have a .prg file that contains hundreds of procedures that are defined by job function, and I wanted to break them into classes based on the job function, add the procedures as methods, and then go in and make modifications to those methods as needed. I started to do this manually, but it became so tedious that I wanted to try and atomate the process. There may be a better way and I am very open to any suggestions.


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

Click here to load this message in the networking platform