PDA

Click to See Complete Forum and Search --> : what's the diffrence?


casparas
Jan 9th, 2000, 11:05 AM
hello,

i just wanted to ask what's the basic diffrence betwen sub and function
(with code please)

------------------
-casparas

novice programer
casparas@metacrawler.com

Jan 9th, 2000, 11:10 AM
a function is the same as a sub but it can return a value inside its name:


private function MyFunct(byval AA, Byval BB) as boolean
if AA < BB then MyFunct = true
end function


------------------

Wossname,
Email me: wossnamex@talk21.com :)

spandex44
Jan 9th, 2000, 11:10 AM
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