Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   adding a module to a project (http://www.go4expert.com/forums/adding-module-project-t1073/)

harish13 27Jul2006 10:30

adding a module to a project
 
hi i am new to VB programming.
i want to add my own module to my project cud please anybody tell me how to define and declare ,call a module in VB

shabbir 28Jul2006 11:52

Re: adding a module to a project
 
Choose Project - Add Module.

For defining just define any normal function there and just remember to make it public.

Call the subroutine from any event you wish to.

coderzone 29Jul2006 18:14

Re: adding a module to a project
 
As a sample to the function in module
Code: VB

Public Function MyFuncName() As String
    'You can write any general utility here
    MyFuncName = "CoderZone"
End Function


harish13 31Jul2006 09:00

Re: adding a module to a project
 
thank you for the reply


All times are GMT +5.5. The time now is 08:05.