I would like to know the differences between a class and a module, and
the difference between a sub and a function. I know how to use them.
I've been programming for years. But I would like to know the deep
details of them so I know where and when to use them. So I can have the
most efficient programs.
Thanks

trying to understand classes, module, subs, functions
Nibbla
Does anyone know about classes and modules
Mirronelli
Jeffclar
sub and function is an artificial construct so that VB can avoid having a void return type. Apart from a function returning a value, there is no difference.
Mihir Vaidya
stillDesign
Again a module is somewhat of an artifical construct. A module is in fact a shared class with all methods set to shared as well - which means that you dont have to instance the class to use the methods.
SanjeevBhatia