PDA

Click to See Complete Forum and Search --> : modules


Lost_Light
Nov 4th, 2000, 05:59 PM
i took a class on vb6 for a year and never once were modules mentioned. What are they? Thanks.

Silvertine
Nov 4th, 2000, 06:28 PM
Modules are parts of a project that have no form.
useful for containing code that all or alot of the forms use in the project :)

ex:
code in module:

sub main()
msgbox "Look Ma; No forms"
end sub

code in another form:

private sub form1_load()
project1.module1.main
end sub

hope that helps :D

Lost_Light
Nov 4th, 2000, 06:32 PM
oooooh...............

Thanks a lot =) Makes it clear now. Just never knew what they were for =P