Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and SQL at the same time
Message
De
14/01/2019 14:12:57
 
 
À
14/01/2019 13:24:39
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01664796
Message ID:
01665396
Vues:
77
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform