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 is the difference between convert.tostring and .tostring() method?
what is intermediate language?
What languages does the .net framework support?
Which control is an example of an object in vb net?
Explain about garbage collection?
Explain code security?
what is the advantage of option strict on?
What is the ruby interface generator?
What is non_deterministic finalization?
What is code access security?
Why do you need Lock in Visual Basic?
Explain how to send xml file on server using http protocol?
Why is the xml infoset specification different from the xml dom?
what is commom language runtime?
Name some of the features present in vb 2005?