Question about functions

keko2004

Active member
Joined
Feb 13, 2006
Messages
39
Location
Middle Village, NY
Programming Experience
1-3
hey guys was wondering whats the difference between a sub procedure and a function. is a sub procedure used for lets say buttons, and is a function a method that the button will call?
 
U can make a function in order to make your code object oriented ... in a sub you will create the code for your application and dim the variables, buttons etc...

and in the function there will be what the buttons will do ... so like the functionality ...

in this manner u should also be able to re-use the function ...

I hope i have stated it correctly ...:eek:
 
The difference between a sub and a function is that a function RETURNS a value, while a sub does not. That's it. Nothing more. Nothing less.

-tg
 
M-RaH said:
U can make a function in order to make your code object oriented ... in a sub you will create the code for your application and dim the variables, buttons etc...

and in the function there will be what the buttons will do ... so like the functionality ...

in this manner u should also be able to re-use the function ...

I hope i have stated it correctly ...:eek:

actually that's what Classes (and sometimes Modules) are for
 
Back
Top