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 is the strong name in .net assembly?
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
Name the tool which can convert visual basic old version to .net compatibility version?
Can you please explain the difference between vb and vb.net?
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
Tell me how many .net languages can a single .net dll contain?
Explain the services provided by common language infrastructure.
What languages does the .net framework support?
What is the use of assembly?
Explain option strict?
Define clr?
What is code security?
Explain manifest?
Observations between vb.net and vc#.net?
What is the significance of delegates. Where should they be used?