' Visual Basic 2008 9.0 .NET Examples - Introduction to Functions - Procedures and Functions : Module Example1 Sub Main() Dim value1 As Integer = 5 Dim value2 As Integer = 10 Dim sum As Integer ' MakeSum(value1, value2, sum) Console.WriteLine(sum) ' Console.ReadLine() End Sub Sub MakeSum(ByVal value1 As Integer, ByVal value2 As Integer, _ ByRef sum As Integer) sum = value1 + value2 End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.