' Visual Basic 2008 9.0 .NET Examples - Arguments - ByVal and ByRef - Procedures and Functions : Module Exercise2Solution Sub Input(ByRef value As Integer, ByVal message As String) Console.Write(message) value = Console.ReadLine() End Sub Sub ShowSmallest(ByVal value1 As Integer, ByVal value2 As Integer) Dim smallest As Integer = value1 If value2 < smallest Then smallest = value2 Console.WriteLine("Smallest : " & smallest) End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.