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 are the difference between dispose(), close(), exit(), end()?
What are the types of generations in garbage collector?
Explain about the performance of visual basic?
Name the two main parts of .net?
Explain public assembly?
what is common language specification?
Described strong typing
Explain the components of common language runtime.
What is an assembly and its use?
Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate
Define cls?
What is an arraylist?
What is a literal control?
What are the advantages of VB.NET?
Explain strong name in .net assembly?