Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Procedure To
Message
De
23/05/1996 13:02:49
John Wenger
Clear Sky Computer Company
Lowell, Michigan, États-Unis
 
 
À
23/05/1996 08:41:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00001579
Message ID:
00001590
Vues:
46
>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
Fil
Voir

Click here to load this message in the networking platform