Results 1 to 6 of 6

Thread: What is a module?

  1. #1

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    What is a module?

    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

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    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.
    -= a peet post =-

  3. #3
    champgary
    Guest
    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
    Gary

  4. #4
    Addicted Member
    Join Date
    Feb 2002
    Location
    United
    Posts
    202
    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

  5. #5

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    Thanx everybody

    Hi,

    Thanx everybody for ur information.

    Regards,

    Samir

  6. #6
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    Originally posted by champgary
    ...why don't you have SEARCH on the forum, with module keyword, you can gather more information
    Gary

    how many threads?
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width