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

Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

1663


what is the control used to call a windows application.

1595


What are the Differenct Types of Instancing Property in ActiveX Dll and Exe?

1700


Explain the differences between ActiveX Dll and ActiveX Exe?

1609


How do I make a text box not beep but do something else when I hit the Enter key?

1078






What is meant by building a recordset.

705


Through which protocol OLEDB components are interfaced?

1634


What are forms in visual basic?

635


What is executenonquery in vb net?

592


How do I prevent multiple instances of my program?

1059


what are the Parts of ODBC?

1496


What type of databases you can access through ADO Data Access Object?

1508


What are the scope of the class?

1629


What is the Windows API?

1095


How many ways you can access file using VB?

659