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
Solved

Urgent simple question

Posted on 2004-04-26
6
174 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
VB.NET 1 28
cannot connect to sqlserver 8 35
vb.net cycle through results of a sql query and capture variables 3 18
VB.Net Determine if a mapped network drive exists 2 31
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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