What is the Difference between a sub and a function?
Answer Posted / bart calixto
yeah, sure.. everyone says that but...
what's the purpose of sub.?
I can do a function
Function ThisIsASub()
write "HELLO WORLD"
end Function
wow! I have a sub now.
so, besides the stupid reason that sub don't return value, what's the point of using subs?
If like someone create a newIF but it doesn't support ELSE... what's the point?
Greetings,
Bart.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is file extension of Webservices in .Net?
What are the important components of .net?
What is typical about a windows process in regards to memory allocation in .net?
Write the .net syntax for 'for loop'?
What is .net code security?
What is reflection and what is it for?
I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?
Explain me how does linq work?
What is the difference between odbc and ado?
what will do to avoid prior case?
Explain the difference between the while and for loop.
Describe difference between inline and code-behind?
Explain what is a manifest in .net?
What is close method? How its different from finalize and dispose?
Can a try block have more than one catch block?