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 is late binding and early binding?
What are the parts of the visual basic control?
Explain about branching logic control in vb.net?
Explain about the performance of visual basic?
What is enumerator?
Why is the xml infoset specification different from the xml dom?
Explain namespace?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
What is the difference between static or dynamic assemblies?
Why do you need Lock in Visual Basic?
Explain and brief about rapid application development tool?
What are the shared variables?
What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?
Name a feature which is common to all .net languages?
What is strong typing and weak typing?