DWUTKA at marlow.com
DWUTKA at marlow.com
Mon Jun 12 19:32:43 CDT 2006
Welcome to the AccessD world of Global Variable debate. The argument is that someone somewhere got a wild bug up where the sun don't shine over the MISUSE of a globally scoped variable. Because of that, they declared that ALL globally scoped variables are bad, and somehow people took it as law, instead of seeing that only misuse is bad practice. Kind of silly, eh? Drew -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, June 12, 2006 5:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Class Rebuttal was: Basic Unbound Form ... On 12 Jun 2006 at 16:50, Heenan, Lambert wrote: > What's unclean about a class member reading the INI file and storing the > connection string. Serving it all to the application when it needs it? > > MyConnectionStirng = globStrConnectionString > > Vs. > > MyConnectionString = MyClass.ConnectionString > What benefit does your alternative actually achieve in exchange for adding the complexity of defining MyClass? This looks to me like complexity for the sake of "political correctness". -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com