[AccessD] Data Types (was - Global Variable)

Bobby Heid bheid at appdevgrp.com
Wed May 18 10:50:54 CDT 2005


I always use longs because they are the 32-bit words.  Which is the native
word size on 32-bit architectures.  There are benefits (speed mainly) to
using 32-bit over 16-bit integers for calculations.

Bobby

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow
Sent: Wednesday, May 18, 2005 11:38 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Data Types (was - Global Variable)


I've considered no longer using Integers for variables because of the 16 bit
issue. 

However, I have been reluctant to do so for field datatypes. When utilizing
data from another non-access application this may affect how the other apps
behave. Comments?

John


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins
Sent: Wednesday, May 18, 2005 10:24 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Global Variable

 However, Integers, while they may be misused, even if they are used
correctly, they are still bad practice, because they are 16 bit variables.  

========Why is that bad? If it saves you the trouble of writing code that
does exactly what the data type does -- reject an inappropriate value? Why
would you bother? What is bad about using the data type for its said
purpose, regardless of its size?

Susan H. 

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list