Link to home
Create AccountLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

passing an array through a function.

Error      1      Metadata file 'C:\Users\Aministrator\Desktop\InitialPriceReporting\InitialPriceReporting\DotNet\InitialPriceReportingSpreadsheet\bin\Debug\Cwb.InitialPriceReportingSpreadsheet.exe' could not be found      InitialPriceReporting


 private void Update_Price_List_Header_with_Discounts(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
        }
ASKER CERTIFIED SOLUTION
Avatar of Gautham Janardhan
Gautham Janardhan

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer