Solved

passing an array through a function.

Posted on 2008-06-10
1
210 Views
Last Modified: 2013-12-17
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
        }
0
Comment
Question by:mathieu_cupryk
1 Comment
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
Comment Utility
this is not the correct error u are copying the first line in the error list.. correct ur code to
private void Update_Price_List_Header_with_Discounts(int[,] discounts)..
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now