Answer Posted / satishdubey
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 ? | 7 Yes | 4 No |
Post New Answer View All Answers
What are the different variables in vb.net?
What is misl code?
What are the objects in asp.net?
What are the features present in vb 2005?
How do you call a stored procedure in Visual Basic?
Define cls?
What are the types of generations in garbage collector?
What is the use of console application?
What is jagged array in vb.net?
What are the differences between server-side and client-side code?
Allowed program to auto-correct the database when loading a presentation.
What are the assembly entry points?
Which classes a dll can contain?
Explain enumerator?
What is the significance of delegates?