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
Name the two main parts of .net?
Can you please explain the difference between int and int32?
What is early binding?
What is the importance of a Button control?
What is the exact defination of object?
what is interface and when it is used?
Explain an assembly and its use?
Explain the difference between thread and process?
What are different types of jit ?
What are option strict and option explicit?
How many classes a dll can contain?
What is different between web.config and machine.config and where it will be ?
Explain trace in vb.net?
What are the advantages of VB.NET?
What are the advantages of an assembly?