Hey guys,
I'm trying to pass a multi-dimensional array though parameter to another function, however the powershell gives me the following error:
Cannot process argument transformation on parameter 'resultSet'. Array was not a one-dimensional array.
The code is the follow:
Function ParseResultSet() {
Param ([array[,]] $resultSet, [int] $lineHeader)
write-host ($resultSet)
}
parseResultSet $filterChangeResults 1
the filterChangeResults type is the following:
$filterChangeResults.GetType()
-------- -------- ---- --------
True True Object[,] System.Array
Can you help me?