[AccessD] duplicate function names

John Skolits askolits at ot.com
Mon Jul 31 22:41:25 CDT 2006


Jim,

I prefix all my library files with a "lbf_" (library file) prefix. This
makes sure there is no confusion. You should come up with some kind of
prefix of your own for library functions.

John

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters
Sent: Monday, July 31, 2006 7:11 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] duplicate function names

This can be useful.  You might have a 'generic' function in your library,
but with some installations you need to do something a little different.
With the function in the main database taking preference, you don't need to
change the library.

Dan Waters
 
-----Original Message-----
Subject: [AccessD] duplicate function names

Maybe everyone but me knows this, but I just stumbled upon the fact that it
is possible to have two functions with the same name coexist. If one is in a
module in the current database and the other in a module in a referenced
code library Access will use the function in the current database and ignore
the version in the code library. Everything compiles and runs fine at least
in access 2000. Whether or not this is useful or merely dangerous is a
different question.

Jim Hale


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