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