Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding methods
Message
 
To
15/12/1998 09:27:12
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00167364
Message ID:
00167647
Views:
16
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.
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform