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

How do I tell when an application executed using the SHELL command is finished?

1295


Is there a way to break long lines in VB code?

1144


When/Why should I use Option Explicit?

1229


I get a "file not found" error on the IIF function when I distribute by program. Why?

1264


It possible to call OLEDB's Features directly in VB without using any control?

1727


What's the difference between MODAL and MODELESS forms?

1254


what are the Types of cursors in RDO?

2072


What is data control in vb?

759


How would you add elements in TreevieW Control.

1835


How would you use ActiveX Dll and ActiveX Exe in your application?

1812


How would you run your ActiveX Document Dll?

1642


What is vbs file?

767


Why can't I use an index with my VB accessed database?

1208


what are the types of LockEdits in DAO?

1709


Is it possible to Manipulate data through flexgrid? Explain.

2232