General information
Category:
Coding, syntax & commands
>>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" :)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only