Solved

modules

Posted on 1998-08-26
1
219 Views
Last Modified: 2010-04-30
When should I use modules, classes?
What means " to make an object"?

Thanks
Alberto
0
Comment
Question by:asimoes
1 Comment
 
LVL 4

Accepted Solution

by:
mcix earned 100 total points
ID: 1431116
Modules should be used as a sort of function library that contains commonly used functions.  For example, I have a module that has quite a few of the WinAPI function calls in a VB Friendly method.

Classes should be used to encapsulate an 'object'... They are kind of like User Defined Types, except that instead of just storing data, a class can have methods and invoke events.

For Example:

If you had an application where you wanted to store customer information.  This would be a good place to utilize a class.

I can send you an example of a generic class for a person and I think you will get the idea.

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question