<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FClass_Module%2FVaried_length_method_parameter</id>
		<title>VB.Net Tutorial/Class Module/Varied length method parameter - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FClass_Module%2FVaried_length_method_parameter"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Varied_length_method_parameter&amp;action=history"/>
		<updated>2026-04-05T05:42:03Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Varied_length_method_parameter&amp;diff=3460&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Varied_length_method_parameter&amp;diff=3460&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Varied_length_method_parameter&amp;diff=3461&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Varied_length_method_parameter&amp;diff=3461&amp;oldid=prev"/>
				<updated>2010-05-26T12:55:42Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==ParamArray Parameter (Variable Args)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Module Module1&lt;br /&gt;
    Sub Main()&lt;br /&gt;
        ShowMessage(&amp;quot;Hello there!&amp;quot;)&lt;br /&gt;
        ShowMessage(&amp;quot;Hello&amp;quot;, &amp;quot; there!&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Sub ShowMessage(ByVal ParamArray Text() As String)&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        For i = 0 To UBound(Text)&lt;br /&gt;
            System.Console.Write(Text(i))&lt;br /&gt;
        Next i&lt;br /&gt;
    End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Hello there!Hello there!&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using ParamArray to create variable-length parameter lists.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Module Tester&lt;br /&gt;
   Sub Main()&lt;br /&gt;
      AnyNumberArguments()&lt;br /&gt;
      AnyNumberArguments(2, 3)&lt;br /&gt;
      AnyNumberArguments(7, 8, 9, 10)&lt;br /&gt;
   End Sub &amp;quot; Main&lt;br /&gt;
   Sub AnyNumberArguments(ByVal ParamArray array1 _&lt;br /&gt;
      As Integer())&lt;br /&gt;
      Dim i, total As Integer&lt;br /&gt;
      total = 0&lt;br /&gt;
      If array1.Length = 0 Then&lt;br /&gt;
         Console.WriteLine(&amp;quot; received 0 arguments.&amp;quot;)&lt;br /&gt;
      Else&lt;br /&gt;
         Console.Write(&amp;quot;The total of &amp;quot;)&lt;br /&gt;
         For i = 0 To array1.GetUpperBound(0)&lt;br /&gt;
            Console.Write(array1(i) &amp;amp; &amp;quot; &amp;quot;)&lt;br /&gt;
            total += array1(i)&lt;br /&gt;
         Next&lt;br /&gt;
         Console.WriteLine(&amp;quot;is {0}.&amp;quot;, total)&lt;br /&gt;
      End If&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;received 0 arguments.&lt;br /&gt;
The total of 2 3 is 5.&lt;br /&gt;
The total of 7 8 9 10 is 34.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Varied length Method parameter==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
 Imports System&lt;br /&gt;
 Class Tester&lt;br /&gt;
     Public Shared Sub DisplayVals(ByVal ParamArray intVals( ) As Integer)&lt;br /&gt;
         Dim i As Integer&lt;br /&gt;
         For Each i In intVals&lt;br /&gt;
             Console.WriteLine(&amp;quot;DisplayVals {0}&amp;quot;, i)&lt;br /&gt;
         Next i&lt;br /&gt;
     End Sub&lt;br /&gt;
     Shared Sub Main( )&lt;br /&gt;
         Dim a As Integer = 5&lt;br /&gt;
         Dim b As Integer = 6&lt;br /&gt;
         Dim c As Integer = 7&lt;br /&gt;
         Console.WriteLine(&amp;quot;Calling with three Integers&amp;quot;)&lt;br /&gt;
         DisplayVals(a, b, c)&lt;br /&gt;
         Console.WriteLine(&amp;quot;Calling with four Integers&amp;quot;)&lt;br /&gt;
         DisplayVals(5, 6, 7, 8)&lt;br /&gt;
         Console.WriteLine(&amp;quot;calling with an array of four Integers&amp;quot;)&lt;br /&gt;
         Dim explicitArray( ) As Integer = {5, 6, 7, 8}&lt;br /&gt;
         DisplayVals(explicitArray)&lt;br /&gt;
     End Sub&lt;br /&gt;
 End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Calling with three Integers&lt;br /&gt;
DisplayVals 5&lt;br /&gt;
DisplayVals 6&lt;br /&gt;
DisplayVals 7&lt;br /&gt;
Calling with four Integers&lt;br /&gt;
DisplayVals 5&lt;br /&gt;
DisplayVals 6&lt;br /&gt;
DisplayVals 7&lt;br /&gt;
DisplayVals 8&lt;br /&gt;
calling with an array of four Integers&lt;br /&gt;
DisplayVals 5&lt;br /&gt;
DisplayVals 6&lt;br /&gt;
DisplayVals 7&lt;br /&gt;
DisplayVals 8&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>