[AccessD] Naming Convention (was Days Past Due - Grace Period)

Jim DeMarco Jdemarco at hshhp.org
Wed Sep 10 13:27:33 CDT 2003


ASP is a different animal though isn't it?  Scripted code versus compiled and all that.  Reddick naming conventions specify using "var" prefix for variants although we use "v" here (or "var").  Seems dangerous not specifying the actual data type in your VB/VBA code.

My 2 cents,

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Drew Wutka [mailto:DWUTKA at marlow.com]
Sent: Wednesday, September 10, 2003 2:18 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Naming Convention (was Days Past Due - Grace
Period) 


Do you write ASP pages?  If so, do you prefix all of your variables with
var?

Drew

-----Original Message-----
From: Don Elliker [mailto:delliker at hotmail.com]
Sent: Wednesday, September 10, 2003 9:20 AM
To: accessd at databaseadvisors.com
Subject: RE: [AccessD] Naming Convention (was Days Past Due - Grace
Period) 


I don't get it...how do you ever know what the datatype is?? How do you know

when an 'str' is really a string and when it will accept a form reference. How about overflows? If you follow that logic, what looks like a long, may be an integer.
I suppose you can do whatever you want, but if the logic is "I may need to have something else here but I want a string"...then why not (as I believe William suggested) make them all variant and leave off the datatype 
'convention' (not).
_d



"Things are only free to the extent that you don't pay for them".-Don 
Elliker





>From: Drew Wutka <DWUTKA at marlow.com>
>Reply-To: Access Developers discussion and problem 
>solving<accessd at databaseadvisors.com>
>To: "'Access Developers discussion and problem solving'" 
><accessd at databaseadvisors.com>
>Subject: RE: [AccessD] Days Past Due - Grace Period
>Date: Tue, 9 Sep 2003 16:33:06 -0500
>
>I don't think I have every prefixed a Variant as var, yet.  My logic in my
>statement is I want a string, so I prefixed it as a string, but it may need
>to be a variant, so it's declared as a variant.
>
>Drew
>
>-----Original Message-----
>From: Gustav Brock [mailto:gustav at cactus.dk]
>Sent: Tuesday, September 09, 2003 3:24 AM
>To: Access Developers discussion and problem solving
>Subject: Re: [AccessD] Days Past Due - Grace Period
>
>
>Hi Drew
>
> > .. I left the strStatus argument as a variant, in case it is ever
> > passed a null
>
>Then you should have renamed it varStatus ...
>
>/gustav
>
>_______________________________________________
>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

_________________________________________________________________
Use custom emotions -- try MSN Messenger 6.0! 
http://www.msnmessenger-download.com/tracking/reach_emoticon

_______________________________________________
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


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the AccessD mailing list