Display-Array1.ps1

by Nov 22, 2008

# 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 # Prints the initial… Read the full text.