Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and SQL at the same time
Message
From
14/01/2019 14:12:57
 
 
To
14/01/2019 13:24:39
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01664796
Message ID:
01665396
Views:
76
>>>Having a common utils.prg allows encapsulation, a single place to search for the function you need.
>
>We have used them for that purpose, but if I were refactoring? Certainly I'd consider Mike's and Tamar's advice- not least because for VFP Compiler, the last thing you want is giant baggage to be parsed and converted to C++ that's never even used in the app, but happens to be in a large SET PROC. It's worse if SET PROCS refer to each other, because then the simplest app suddenly can have a forest of library prgs cluttering things up.

It's a possibility. As I recall, it's only happened a handful of times, and it's easy enough to diagnose with a Code References search. It'll find duplicate definitions.

One of the biggest issues we've had have been with people using abbreviated keyword names, so we did away with that some time ago, so searching for "FUNCTION myFuncName" instead of "FUNC myFuncName" will always work.
Previous
Reply
Map
View

Click here to load this message in the networking platform