# Display-Array1.ps1 # Sample using PowerShell # Thomas Lee # Helper function function PrintValues{ param ( $myArr ) foreach ( $i in $myArr ) { " `t{0} " -f $i } "" } # Start of Sample # Creates and initializes a new integer array and a new Object array. $myIntArray = 1 , 2 , 3 , 4 , 5 [system.object] $myObjArray = [object] 26 , [object] 27 , [object] 28 ,[object] 29 ,[object] 30
Read More...
Read the complete post at http://pshscripts.blogspot.com/2008/11/display-array1ps1.html
Posted
Nov 21 2008, 01:21 PM
by
PowerShell Scripts