Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hashtable and three columns

Status
Not open for further replies.

ehaze

Technical User
Oct 16, 2009
254
US
In my script, I'm querying a SQL Table and returning some records. The returned data set has three columns and a few rows.

I can fill a hashtable if I'm only using two columns. When I try to use three columns, the script breaks.

Cannot find an overload for "Add" and the argument count: "3"

this works:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping)
}

Does not work:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping, $item.cheese)
}



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top