what is differece b/w Module and class Modules in vb6?
thanks
Answers were Sorted based on User's Feedback
Answer / kumari santosh
Module
Code in VB is stored in modules.
Thereare three kind of modules, Class modules, Form modules
and Stendard modules.
In VB there are common codes we want to execute in several
forms. We do not want to duplicate the code in all forms,
we create a separate module containing the procedure that
implements the common code. This separate module should be
Standard module.
Class Module
Class modules (.CLS extension) are foundation of object
oriented programming in VB. We can write code in class
modules to create new objects. These new objects can
include our own customiaed properties and methods, although
custom objects can not have their own events.
We can also use the keyword, New to create multiple copies
of our objects.
| Is This Answer Correct ? | 87 Yes | 8 No |
Answer / anonymous
standard module:
1)place for variable declarations,procedures etc.and we can
access these procedures wherever needed in the project.
2)Available only for the existing modules where they are
used.
class module:
1)Unlike standard module,members of class like object's
properties,events can be accessed only whenever an instance
of class is created.
2)We can make use of it whenever an object reference of the
particular class is created for number of applications
| Is This Answer Correct ? | 67 Yes | 16 No |
Answer / srivathsa pv
one more important difference between a class module and a
basic module is the extension. for basic modules the
extension is .BAS and for class modules the extension is .CLS
| Is This Answer Correct ? | 27 Yes | 4 No |
Answer / jerald
class module
It is a user defined datatype.
It have datamembers(methods and variables).
It can be accesed by creating the instance called
object if the class is not static. If the class is static
then it can be acessed using classname.datamember when
datamember is public.
Protected datamember can be accesed only by the first
inherited class.
Private datamember can be accesed only inside the main
class.
| Is This Answer Correct ? | 12 Yes | 25 No |
If we can make more than one MDI Form in VB then How? I need to make 2 MDI Forms in my project.
what is the DIFF between Image and Picture box controls
What is "NULL"?
What are the scope of the class?
What about DLL calls that require callbacks?
How to customize workgroup message?
What is Pseudocode?
Does VB Supports OOPS Concepts? Explain..
Explain Default cursor Type and LockEdits type in RDO?
What is the difference between a Property Let and Property Set procedure?
How do I implement Undo?
What is ActiveX Dll and ActiveX Exe?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)