Answer Posted / m.sivakumar
A Sub Procedure is a method will not return a value
A sub procedure will be defined with a Sub keyword
Sub ShowName(ByVal myName As String)
Console.WriteLine (My name is: & myName)
End Sub
A function is a method that will return value(s).
A function will be defined with a Function keyword
Function FindSum(ByVal num1 As Integer, ByVal num2 As Integer)
As Integer
Dim sum As Integer = num1 + num2
Return sum
End Function
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
What are the different types of applications supported in .net (or) .net framework?
What is the difference between Namespace and Assembly?
Observations between vb.net and vc#.net?
What are the differences between server-side and client-side code?
What is the advantage of using system.text.stringbuilder over system.string?
What is the ruby interface generator?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
What is tracing?
How to connect crystal report in vb.net ?
Define serialization in .net?
What is the diff between vb mdi form and .net mdi form?
Name and explain some of the exclusive features which are present in vb?
How do you use two datareaders at the same time in a vb.net windows application ?
What is the top .net class that everything is derived from?
What do you mean by deserialization?