>In the July issue of Foxpro Advisor (p. 30), Mac
>Rubel makes the statement that "the need for a
>procedure file disappeared". He later goes on to
>say that it is no longer necessary to use SET
>PROCEDURE TO in order to access routines which are
>not in the active PRG file or in the Thread of
>calling PRG files . This has not been my
>experience. Am I missing something ?
If you use OOP the procedures are now methods in your class library. Whenever you subclass the methods are inherited.
Note: This is only true if you redesign your application to be entirely object oriented. Your not missing something if you choose to keep some of your code in a procedure file. Having all the routines in one place makes it worthwhile.
What you lose is encapsulation. ie: Outside components are required (the procedure file) for any objects that have SET PROCEDURE TO in them.
I'm still learning OOP so PLEASE correct me if I'm wrong about any of this.
Hope This Helps,
John
Clear Sky Computer Company
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement