Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Urgent simple question

Posted on 2004-04-26
6
Medium Priority
?
179 Views
Last Modified: 2010-04-24
hey guyz

What is the difference between a VB module and a VB class?

thnx
krtihi
0
Comment
Question by:krithi
[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
6 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 100 total points
ID: 10916885
0
 
LVL 5

Assisted Solution

by:tgannetts
tgannetts earned 100 total points
ID: 10917510
0
 
LVL 1

Expert Comment

by:warmach
ID: 10917955
Basically, a VB module is a place to put things you need that have a global scope, i.e. global variable and functions.  It is very similar to Bas Modules in VB6.  Classes are the meat and potatoes of .NET  These are the objects you are creating and manipulating.  Use classes when have a set of data and functions that are somehow related.  Use a Module as a place to store global application data/functions.
0
 

Expert Comment

by:kaps78
ID: 10924958
Classes are objects where the code is self contained. They usually do a specific job well and are designed to be easily reused without changing the code. The object needs to be properly created and qualified when used.

A module is a way to share variables, functions and procedures throughout an application. A way to use global scope.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

704 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