Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening all dbfs in a directory
Message
De
21/10/2013 11:22:42
 
 
À
21/10/2013 11:15:58
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585571
Message ID:
01585951
Vues:
62
I advise people to assume/pretend that public variables are a bad idea 100% of the time, so they will find alternatives.

I definitely agree that as a general guideline/practice, they should be avoided. And again, going back to the original example, they were unnecessary.

The only exception I ever made is for variables without any scope - i.e., global to the entire application. They're usually pretty limited (again, example I use is Company Name, Current User signed on, etc.) Most of the time there are a handful - that's about the only time I ever use them.

Additionally, I believe one example (yours) had the basic structured exception handling, as opposed to the other example with ON ERROR.



And good point on @SAY....GET....wow, that was about 1987? Certainly rings a ?? chr(7) :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform