Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a procedure like a method syntax
Message
De
23/04/2009 07:42:13
 
 
À
22/04/2009 15:46:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01395833
Message ID:
01396043
Vues:
82
>I too use a single file for each function/procedure -- I typically use the notation FUNCTION instead of PROCEDURE. But I go further -- in the file I explicitly define the function and the endfunc lines:

There used to be a significant performance penalty for doing it that way. Here's what I said about it in HackFox:

"But, if you're not careful, in versions through the original release of VFP 6, there's a nasty performance penalty for doing so. It turns out that having a PROCEDURE or FUNCTION statement at the beginning of a stand-alone PRG file increases the execution time by a factor of as much as 10!"

But they seem to have cleaned that up in VFP6 SP3.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform