Quantcast
Viewing latest article 10
Browse Latest Browse All 26981

[RESOLVED] Operator '=' is not defined for types 'Integer()' and 'MyDefines.ENUM_RUN'.

I'm getting the shown error for a Case statement. Now I don't get any error for similar calls in my main form EPIQ class, however, in the Browser Form this is happening. This is a Webbrowser1 base class form, so I don't understand why I would get this error.

Any suggestions?

[code]



Code:

            'Open the Complaints Handling Window
            If (PortalSelect(cID_PORTAL_COMPLAINTS)) Then

                Select Case nRunOption

                    Case ENUM_RUN.eRUN_NONRETURN
                        szMenuSelection = cID_MENU_MAIN_ALL_BY_NUMBER

                    Case ENUM_RUN.eRUN_ANALYSIS
                        szMenuSelection = cID_MENU_ASSIGN_ALL_BY_NUMBER

                    Case ENUM_RUN.eRUN_REVIEW
                        szMenuSelection = cID_MENU_MAIN_ALL_BY_NUMBER

                End Select

            End If

Enum defenition

Code:

    '--------------------------------------------------------------------
    ' Enum: Run Type
    '--------------------------------------------------------------------
    Public Enum ENUM_RUN
        eRUN_NONRETURN = 40
        eRUN_CLOSE_PER
        eRUN_NONCOMPLAINT_PIM
        eRUN_REVIEW
        eRUN_ANALYSIS
        eRUN_MISSED_RISK_REVIEW
        eRUN_NO_PHASE
        eRUN_CANCEL

....


Viewing latest article 10
Browse Latest Browse All 26981

Trending Articles