[AccessD] Function vs Sub (was: Classes and Events - EVENTS NOT REQUIRED)

Gustav Brock Gustav at cactus.dk
Tue Feb 24 06:38:07 CST 2009


Hi Stuart

Well, it will always return "something", if for nothing else an empty Variant ... though that is supposed to be slightly less than Nothing - which hardly is anything - so right you are: No value.

/gustav

>>> stuart at lexacorp.com.pg 24-02-2009 11:02 >>>
Good point.   I often use an Autoexec macro which calls a Startup() 
function which doesn't return a value.  

Stuart

On 24 Feb 2009 at 10:45, Gustav Brock wrote:

> The only reason I see to not write a sub when a return value is not
> needed, is if the (sub)function will be used in a macro as these can't
> call subfunctions. 
> 
> /gustav






More information about the AccessD mailing list