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
Explain code security?
Explain the difference between c# and vb.net?
Write the role of new keyword?
Which class allows an element to be accessed using unique key?
What are the different types of applications supported in .net (or) .net framework?
Explain the difference between datatable and dataset?
What is branching logic control in VB.NET?
What is the class that allows an element to be accessed using unique key?
Is it necessary to have SQL server installed in your computer in order to create a service based database in vb.net?
What is a stream in vb.net?
What is the main use of a namespace?
What is the differences between dataset.clone and dataset.copy?
What is difference between inline and code behind?
Which classes a dll can contain?
What are the differences between server-side and client-side code?