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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Howes

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

    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.rtdFileLis t.ViewType =
    MainNS.WinContr olsNS.RTDFileLi st.ViewTypes.QU ANT;

    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









Working...