Changes

Jump to: navigation, search

Working with Arrays in Windows PowerShell 1.0

454 bytes added, 13:39, 14 May 2009
no edit summary
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Basic Windows PowerShell 1.0 Types|Previous]]<td align="center">[[Windows PowerShell 1.0 Essentials|Table of Contents]]<td width="20%" align="right">[[Windows PowerShell 1.0 Hashtables|Next]]</td>
<tr>
<td width="20%">Basic Windows PowerShell 1.0 Types<td align="center"><td width="20%" align="right">Windows PowerShell 1.0 Hashtables</td>
</table>
<hr>
 
 
<google>BUY_WPS</google>
 
 
In the previous chapter we looked at the basic Windows PowerShell data types. This chapter will begin to look at some more complex data types, starting with ''arrays'' and ''multidimensional arrays''. An array allows a collection of values to be stored and accessed via a single variable. Unlike some languages, Windows PowerShell does not restrict the elements of an array to being of the same type (a concept referred to as ''polymorphic''). For example, it is perfectly valid for some array elements to be Int32 values whilst others are Strings. Each item is accessed in the array variable through the use of an ''index'' value into the array.

Navigation menu