DWUTKA at marlow.com
DWUTKA at marlow.com
Tue Aug 10 15:57:45 CDT 2004
Okay JC, if I did this: Dim i as Long Dim rs As Recordset Dim strFieldNames as String ....(Opening Recordset) For i=0 to rs.Fields.Count-1 strFieldNames=strFieldNames & rs.Fields(i).Name & ", " Next i strFieldNames=Left(strFieldNames, Len(strFieldNames)-2) would you really want Dim lngFieldCollectionCounter As Long ????? Give me a break! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, August 09, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Conventions Counters count SOMETHING. What is it counting? WHY are you bothering to count? It is exactly that thinking that leads to obfuscation. JWC -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Monday, August 09, 2004 11:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Naming Conventions Exactly! The names ijk imply throwaway variables not of interest in themselves -- mere counters. So there's nothing wrong IMO with Dim i as Long, j as Long, k as Long For I = 1 to 100 For j = 1 to 10 For k = 1 to 35 DoSomething Next DoSomethingElse Next DoSomethingCompletelyDifferent Next What's the rumpus? (quoting my fave movie of all time, "Miller's Crossing") Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, August 09, 2004 12:49 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Naming Conventions Ah, but i, j, k, etc. are a naming convention in and of itself. We don't go: LongIntegerSomethingOrOther We go: lngSomethingOrOther or intSomethingOrOther Because lng relates to a long integer....int to integer.... so, i, j, k relate to a counting integer..... What's the fuss? Now, this whole naming convention thing would be a completely different story if the entire world programmed the same way. But they don't. No one can agree on the exact same convention, so all this is, is many many 'camps' saying 'my way is better, I better not ever have to read your code'..... Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com