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 difference between import system.data.sqlclient,system.data.oledb?
What do you mean by Redim in VB.NET?
Explain jit?
What are all the differences between dispose and finalize()?
List the types of generations in garbage collector?
What is a preprocessor directive in vb.net?
What is code security?
What is an arraylist?
What is the differences between dataset.clone and dataset.copy?
What is the difference between convert.tostring and .tostring() method?
What is difference between metadata and manifest?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
Why should you use delegate?
What is break mode? What are the options to step through code?
What is the importance of a Button control?