Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening all dbfs in a directory
Message
De
21/10/2013 11:26:55
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
21/10/2013 11:22:42
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:
01585953
Vues:
73
>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.

I would implement such a thing with an object - yes it would be global in scope - but it would at least protect itself from random changes. Publics are dangerously open.

>
>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) :)

Thanks!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform