Reference error!

  • Thread starter Thread starter rcoco
  • Start date Start date
R

rcoco

Hi,
I have this project it has a folder that it's supposed to read but when
I run an error occurs the type or namespace name src could not be
found(areyou missing a using directive or an assembly referrence?).
This folder is src it contains a folder called controls and in controls
that's where one finds an object and I think It's a graph because the
code looks like this.
public src.controls.cont dngchart;

// Set our axis values
dngchart.YAxisValues = iValue;

// Set our axis strings
dngchart.YAxisItems = sItems;

// the colors
dngchart.gcolors=mags;

// Provide a title
dngchart.ChartTitle = "<b>Inventory Breakdown:</b>";

// Provide an title for the X-Axis
dngchart.XAxisTitle = "(units display actual numbers)";
What could this be?
Thanks
 
You don't give a lot of info about how your project is structured, or
where - exactly - the error occurs. Usually this type of error occurs at
compile time, but you say, "When I run ...". So I don't really understand
that.

Assuming for the moment that the error occurs at compile time on the first
line you give:

public src.controls.cont dngchart;

(Which presumably is a member variable of some class or other)

Have you referenced the assembly that contains the class src.controls.cont?

If not you will have to add such a reference before your project will
compile.

If the error occurs at runtime (i.e. the project compiles without errors),
then please let us know what happens when you run the project through the
debugger - i.e. on what line does the error occurs, as well as giving some
surrounding lines for context, and the current values of all the variables
that you think are of interest.

HTH


Peter
 
Back
Top