Difference between revisions of "Arrays (Papyrus)"

88 bytes added ,  21:21, 1 March 2018
added category
imported>Plplecuyer
 
imported>Qazaaq
(added category)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Description=
=Description=


Arrays are special kinds of variables that can hold more then one value of the same type. You select which value you want via a numerical index that ranges from zero to the length of the array, minus one.
Arrays are special kinds of variables that can hold more then one value of the same type. You select which value you want via a numerical index that ranges from zero to the length of the array, minus one. More information on arrays can be found on the [[Array Reference]].


=Declaring Arrays=
=Declaring Arrays=
Line 165: Line 165:


Function MyFunction()
Function MyFunction()
   Point[] myArray = new Array[2]
   Point[] myArray = new Point[2]


   Point myPoint = new Point
   Point myPoint = new Point
Line 282: Line 282:
Debug.Trace("There are " + count + " hellos in the array")
Debug.Trace("There are " + count + " hellos in the array")
</source>
</source>
[[Category: Papyrus]]
 
[[Category: Papyrus Tutorials]]
 
[[Category:Papyrus]]
[[Category:Papyrus Tutorials]]
[[Category:Arrays]]
Anonymous user