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
What is code access security?
Name the tool which can convert visual basic old version to .net compatibility version?
How can we remove handlers at run time?
Explain convert.tostring and i.tostring method?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
Define naming convention?
Explain enumerator?
How do you retrieve the customized properties of a .net application from xml .config file?
Explain the difference between thread and process?
What is the significance of delegates?
Explain about the keyword must inherit?
Which class allows an element to be accessed using unique key?
What is an application domain? how they get created?
Explain an assembly?
What is difference between metadata and manifest?