Solved

modules

Posted on 1998-08-26
1
211 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now