Visual BasicPublic Enum LoggingMode
Normal
Extended
End Enum
Public Class TestApplication
Property LoggingMode As LoggingMode
End Class
Public Class TestClass
Private Sub SetLoggingMode(item As String)
Dim <caret>app As TestApplication
Select Case item
Case "Desktop"
app = New TestApplication With {.LoggingMode = LoggingMode.Normal}
Case "Web"
app = New TestApplication With {.LoggingMode = LoggingMode.Normal}
Case "Mobile"
app = New TestApplication With {.LoggingMode = LoggingMode.Extended}
End Select
End Sub
End Class
Refactoring - ‘Remove Unused Variable’ produces a compilation error in Visual Basic for a variable that is initialized in the Select statement
Answers approved by DevExpress Support
We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.
Note: Hotfixes may be unavailable for betas/updates set for release within a week.
- v21.1.3Download Official Update
- v20.2.12Sign in to Request Hotfix