what is differece b/w Module and class Modules in vb6?
thanks

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of ActiveX Documents?

1575


What is meant by Establish Connection in RDO?

1679


Explain the differences between ActiveX Dll and ActiveX Exe?

2063


Difference between Linked Object and Embedded Object?

1791


How can you check whether a record is valid record or Invalid record using ADO control or Object?

1399






How would you attach an ActiveX control in Your Application?

1605


What is the use of Visual Basic Document file?

1905


Explain Types of DBCombo boxes?

596


What is visual basic used for?

544


How to get freefile location in memory?

2083


What are 3 main differences between flexgrid control and dbgrid control?

1696


What are the types of line styles available in Treeview Control?

1877


which property of menu cannot be set at run time.

1500


To.set the command button for ESC ___ Property has to be changed.

992


How would you add elements in TreevieW Control.

1515