Modules VS Classes

fathrDave
01-16-2004, 06:45 AM
Very simple question.

What is the difference between a module and a class?
I have been reading about them but cannot find a distinct difference.

Why should I use a module?


Thanks for any input,

fathrDave

Iceplug
01-16-2004, 07:41 AM
Actually, a Module lets you declare variables and methods that are public to your project.

But you can do this also with Shared variables and Shared methods in a class... so I would suggest to just use Classes and not to worry your mind :).

Machaira
01-17-2004, 09:14 AM
You can't instantiate instances of a module, you can for classes. I usually use modules for miscellaneous functions, global variables (the few that I use), and sometimes start the app there in a Main procedure if I need to do things before showing the main form (login, read data, etc).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum