Hi Everybody,
Can anyone please tell me what is a module? Why do we need it? And situations where we have to use a module. What is so special about the submain fundtion?
Regards
Samir
Printable View
Hi Everybody,
Can anyone please tell me what is a module? Why do we need it? And situations where we have to use a module. What is so special about the submain fundtion?
Regards
Samir
A module is where u put all the functions and subs that u want all the forms in u'r app to reach.
The Sub Main is special, because u can set u'r app to use this sub as the startup object.
hi,
modules are mainly use to define the public functions and variables There are class modules also.
why don't you have SEARCH on the forum, with module keyword, you can gather more information:cool:
Gary
Standard modules (.BAS name extension) are used to stored procedures and declarations commonly accessed by other modules in the application. They can contain global (available to the whole application) or module-level declarations of variables, constants, types, external procedures, and global procedures. The code that you write in a standard module isn't necessarily tied to a particular application.A standard module can be reused in many different application
As for sub main () , sometimes when u start a application , you may want it to start without any form_load() events occuring initially
Hi,
Thanx everybody for ur information.
Regards,
Samir
Quote:
Originally posted by champgary
...why don't you have SEARCH on the forum, with module keyword, you can gather more information:cool:
Gary
:eek: how many threads?