mathieu_cupryk
asked on
passing an array through a function.
Error 1 Metadata file 'C:\Users\Aministrator\Des ktop\Initi alPriceRep orting\Ini tialPriceR eporting\D otNet\Init ialPriceRe portingSpr eadsheet\b in\Debug\C wb.Initial PriceRepor tingSpread sheet.exe' could not be found InitialPriceReporting
private void Update_Price_List_Header_w ith_Discou nts(int discounts[,])
it does not like the [,]
{
int whtToughDiscount;
int whtDampDiscount;
int whtStoneDiscount;
int durToughDiscount;
int durDampDiscount;
int durStoneDiscount;
int blyToughDiscount;
int blyDampDiscount;
int blyStoneDiscount;
int desToughDiscount;
int desDampDiscount;
whtToughDiscount = discounts[0, 0];
whtDampDiscount = discounts[0, 1];
whtStoneDiscount = discounts[0, 2];
durToughDiscount = discounts[1, 0];
durDampDiscount = discounts[1, 1];
durStoneDiscount = discounts[1, 2];
blyToughDiscount = discounts[2, 0];
blyDampDiscount = discounts[2, 1];
blyStoneDiscount = discounts[2, 2];
desToughDiscount = discounts[3, 0];
desDampDiscount = discounts[3, 1];
// Store the values in the Price List Header table
}
private void Update_Price_List_Header_w
it does not like the [,]
{
int whtToughDiscount;
int whtDampDiscount;
int whtStoneDiscount;
int durToughDiscount;
int durDampDiscount;
int durStoneDiscount;
int blyToughDiscount;
int blyDampDiscount;
int blyStoneDiscount;
int desToughDiscount;
int desDampDiscount;
whtToughDiscount = discounts[0, 0];
whtDampDiscount = discounts[0, 1];
whtStoneDiscount = discounts[0, 2];
durToughDiscount = discounts[1, 0];
durDampDiscount = discounts[1, 1];
durStoneDiscount = discounts[1, 2];
blyToughDiscount = discounts[2, 0];
blyDampDiscount = discounts[2, 1];
blyStoneDiscount = discounts[2, 2];
desToughDiscount = discounts[3, 0];
desDampDiscount = discounts[3, 1];
// Store the values in the Price List Header table
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.