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
How many types of transactions are there in com + .net ?
What are code contracts?
With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
What is cyclomatic complexity and why is it important?
What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What is a metadata in .net?
How many namespaces are in .net version 1.1?
Explain about .net assemblies?
What are three common acronyms used in .net, and what do they stand for?
Elements of CAS
What is the difference between response.write & response.output.write?
What's the use of system.diagnostics.process class in .net?
Difference between value type & reference types ?
Who is using .net core?