Solved

modules

Posted on 1998-08-26
1
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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