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
Did vb6 support multi-threading ?
What is the difference between value and reference types?
how many server control present in .net
Explain trace in vb.net?
What’s the difference between private and shared assembly?
What are the technology areas that microsoft.net contains?
Is vb.net dead?
Explain some of the exclusive features which are present in vb?
Explain how does the xmlserializer work?
Explain the differences between vb.net and c#, related to oops concepts?
Can you please explain the difference between dispose and finalize()?
What is the use of system.diagnostics.process class?
Which namespace are used for accessing the data?
How many ways the function can return values?
How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?