Solved

Urgent simple question

Posted on 2004-04-26
6
175 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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