Solved

Urgent simple question

Posted on 2004-04-26
6
171 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
6 Comments
 
LVL 28

Accepted Solution

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

Assisted Solution

by:tgannetts
tgannetts earned 25 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

10 Experts available now in Live!

Get 1:1 Help Now