From ed1dd2eca630911681f87d533f9752adb70e48f0 Mon Sep 17 00:00:00 2001 From: Developer01 Date: Mon, 29 Dec 2025 14:42:51 +0100 Subject: [PATCH] =?UTF-8?q?*=20=E2=80=9ELinie=20305:=20The=20variable=20'o?= =?UTF-8?q?Type'=20is=20not=20declared=20anywhere=20in=20the=20method=20or?= =?UTF-8?q?=20class,=20which=20causes=20error=20BC30451.=20The=20original?= =?UTF-8?q?=20code=20had=20a=20commented-out=20line=20indicating=20that=20?= =?UTF-8?q?'oAttribute'=20(from=20which=20'oType'=20would=20be=20derived)?= =?UTF-8?q?=20is=20also=20not=20declared.=20To=20fix=20the=20error=20and?= =?UTF-8?q?=20allow=20compilation,=20return=20Nothing=20(or=20another=20ap?= =?UTF-8?q?propriate=20default=20value)=20until=20the=20correct=20logic=20?= =?UTF-8?q?can=20be=20implemented.=E2=80=9C=20in=20Datei=20=E2=80=9EWindre?= =?UTF-8?q?am\Windream.vb=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windream/Windream.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windream/Windream.vb b/Windream/Windream.vb index f7a68c41..a5ff4475 100644 --- a/Windream/Windream.vb +++ b/Windream/Windream.vb @@ -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)