' Visual Basic 2008 9.0 .NET Examples - Methods and Arguments - Procedures and Functions : Module Example9 Sub Main() Dim values As Integer() Example5.PrintArray(values) ' values = GetIntegerArray(10) Example5.PrintArray(values) ' Console.ReadLine() End Sub Function GetIntegerArray(ByVal capacity As Integer) As Integer() Dim integerArray(capacity - 1) As Integer GetIntegerArray = integerArray End Function End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.