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 strong name in .net assembly?
How to send xml file on server using http protocol?
Explain the use of serialization and deserialization?
Define naming convention?
Did vb6 support multi-threading ?
What are the difference between dispose(), close(), exit(), end()? When do we use them?
What are the features of c# which are not present in vb.net?
What are option strict and option explicit?
What is the advantage of using system.text.stringbuilder over system.string?
Explain convert.tostring and i.tostring method?
what is difference between web.config and machine.config and where it will be ?
What is a literal control?
What is DLL HELL in VB.NET
Name some different types of control?
What is the difference between static or dynamic assemblies?