Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a procedure like a method syntax
Message
De
23/04/2009 11:58:54
 
 
À
23/04/2009 07:42:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01395833
Message ID:
01396090
Vues:
88
>>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

I was unaware of this -- thank you. I have your book but missed that tip somewhere along the line or at least forgot about it. However, I am now using VFP9 SP2 only -- so I can be "fat-dumb-and-happy" :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform