Home Forums Programming Powershell Noob Powershell String Parsing Question RE: Noob Powershell String Parsing Question

  • I figured it out...

    $myArray =@()

    foreach ($item in $TestLocations) { $myArray += $item.LineNumber }

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001