Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does it matter where a func code reside?
Message
From
10/07/2013 11:05:52
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01578092
Message ID:
01578101
Views:
65
>Hi,
>
>I have a function (fairly small) that loads a cursor from XML (application configuration values). This function can be in the main application .PRG or in some other MISC_FUNC.PRG (loaded in the main .PRG via SET PROCEDURE TO MISC_FUNC ADDITIVE). Does it matter for the speed of the program is this function in one place or the other? Any other things to consider as far as the place for this function?
>TIA

A single standalone .prg is my first choice - if it's a function that VFP should have. Compiled into the exe, there is no speed advantage to having the function inside another .prg. In fact, even having to execute the line SET PROCEDURE TO someproclib.prg takes time. If you might want the advantage of sub-classing, consider making it into a class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform