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

Gustav Brock Gustav at cactus.dk
Tue Feb 24 08:38:12 CST 2009


Hi Stuart

That's a nice old story. However, it fails because it defines sound as being dependant on both a transmitter and a receiver. A sound transmitter (speaker, siren etc.) will continue to produce sound even if a receiver is not there; in that case the sound energy is absorbed by the air surrounding it or ultimately by the surroundings and turns into heat. That tells further, that no _air_, no sound. So no transmitting media, no sound. Thus everything in outer space is silent, which is why all the roaring and noise from the spaceships in Starwars is nonsense. But who cares. One Silent Movie is enough!

/gustav

>>> stuart at lexacorp.com.pg 24-02-2009 14:26 >>>
Now we are getting philosophical :-)

"If a tree falls in a forest and no one is around to hear it, does it make a sound?" 

Answer??
"Sound is vibration, transmitted to our senses through the mechanism of the ear, and 
recognized as sound only at our nerve centers. The falling of the tree or any other 
disturbance will produce vibration of the air. If there be no ears to hear, there will be no 
sound."  

x= myFunction() demonstrably returns an Empty Variant

does "Call myFunction()"  *return* anything? If so, where to?

Cheers,
Stuart (aka Bishop Berkely)


> 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