Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a procedure like a method syntax
Message
De
23/04/2009 10:09:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01395833
Message ID:
01396075
Vues:
92
>Just out of curiosity, I do not use any prg's but rather elected to create custom object with all calls that I need. Each custom object can be added at the form level or the app object level and seems to work very well for me.
>I find it very easy to locate each method and property declared in the custom object and never could figure out why bothering with the prg's
>
>What benefits are there to the prg approach that I am missing?

Well, for me, I guess that's just the way I learned. Your method seems fine too.

I don't know what the memory footprint is, but if you created an instance of the utility object at the form level, you would have an instance of it for each open form. In my app, each user may have up to 15 open forms. Even so, I don't see how that could create any problems.

An app instance certainly seems like a resonable scenario here.

I might play around with this just for grins. Seems like a more OO approach.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform