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
Name some of the features present in vb 2005?
What is the use of system.diagnostics.process class?
How do you retrieve the customized properties of a .net application from xml .config file?
What is the advantages of VB.NET?
What is late binding and early binding?
Why do we use byref keyword in vb.net?
Can you please explain the difference between dataset and datareader?
Explain how to store decimal data in .net?
Define naming convention?
What is a static variable?
Explain the difference between dispose and finalize()?
Which control is an example of an object in vb net?
Explain about the performance of visual basic?
What are the differences between c# and visual basic.net?
Define serialization in .net?