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
Explain option explicit?
Tell me which namespace are used for accessing the data?
Explain about the keyword must inherit?
Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?
Name the class which allows an element to be accessed using unique key?
How to run a dos command in vb.net?
Explain how to send xml file on server using http protocol?
Explain public assembly?
What is the role of new keyword?
What are the features present in vb 2005?
Explain convert.tostring and i.tostring method?
Explain cts?
What languages does the .net framework support?
Explain about the ruby interface generator?
what is difference between namespace and assembly?