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 the difference between int and int32?
What is late binding?
What is misl code?
Explain how the .net framework performs automatic memory management.
How to achieve Polymorphism in VB.Net?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
Explain convert.tostrin?
Did vb6 support multi-threading ?
What are the different types of applications supported in .net (or) .net framework?
Which properties are used to bind a DataGridView control?
Explain redim keyword?
Define naming convention?
Described strong typing
What is a literal control?
Why do you need Lock in Visual Basic?