* „Linie 305: The variable 'oType' is not declared anywhere in the method or class, which causes error BC30451. The original code had a commented-out line indicating that 'oAttribute' (from which 'oType' would be derived) is also not declared. To fix the error and allow compilation, return Nothing (or another appropriate default value) until the correct logic can be implemented.“ in Datei „Windream\Windream.vb“

This commit is contained in:
Developer01
2025-12-29 14:42:51 +01:00
parent f07ceee1f4
commit ed1dd2eca6

View File

@@ -302,7 +302,8 @@ Public Class Windream
' TODO: WMEntityAttribute is not defined. Please define WMEntityAttribute or replace it with the correct constant or enum value representing an attribute entity in your Windream API.
Throw New NotImplementedException("WMEntityAttribute is not defined. Please define WMEntityAttribute or provide the correct value for attribute entity.")
'Dim oType = oAttribute.GetVariableValue("dwAttrType") ' oAttribute is not declared, so this line is commented out to fix BC30451
Return oType
' oType is not declared, so we cannot return it. Return a default value or handle appropriately.
Return Nothing
Catch ex As Exception
_logger.Warn($"Error in Windream.GetIndexType for Indexname [{IndexName}]")
_logger.Error(ex)