The variable is either undeclared or was never assigned????

  • Thread starter Thread starter Michael Howes
  • Start date Start date
M

Michael Howes

I have a strange "warning" that shows up during design time in my current
project.

I have a UserControl, which contains a public enum called ViewTypes
This UserControl also has a public property of type ViewTypes called
ViewType

When I dropped this control onto a form the following line of code gets
added by the designer

this.rtdFileList.ViewType =
MainNS.WinControlsNS.RTDFileList.ViewTypes.QUANT;

But when I open the project the following, I assume "warning" shows up in
the Task List Build Errors (I haven't even built yet!)

"The variable 'ViewTypes' is either undeclared or was never assigned."

Huh?

There is no variable ViewTypes!

When I click on the error it takes me to the line of code above. Again Huh?

and the project builds and runs just find

what is going on here?

thanks

mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top