hello,
i just wanted to ask what's the basic diffrence betwen sub and function
(with code please)
------------------
-casparas
novice programer
[email protected]
Printable View
hello,
i just wanted to ask what's the basic diffrence betwen sub and function
(with code please)
------------------
-casparas
novice programer
[email protected]
a function is the same as a sub but it can return a value inside its name:
------------------Code:private function MyFunct(byval AA, Byval BB) as boolean
if AA < BB then MyFunct = true
end function
Wossname,
Email me: [email protected] :)
There's a free lesson at ZDU all about normal procedures and functions for free. I took it but I forgot what the difference between the two is. It's something about the way they are called (activated), and how the variables are passed.
Sorry if I wan't too much of a help!
------------------
Regards,
Alexander McAndrew
VB Zone
http://gsenterprise.server101.com