From a374b55ba20e2c316698e9af0f616c6d8ef209cd Mon Sep 17 00:00:00 2001 From: OlgunR Date: Thu, 23 Apr 2026 10:23:12 +0200 Subject: [PATCH] Add extra check for Pos_From equals i before array update Added a condition to ensure Pos_From equals i before resizing and assigning the Ergebnis array when only a single value is present. This prevents unintended execution when only one of the conditions is true. --- ToolCollection/clsNIFulltext.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ToolCollection/clsNIFulltext.vb b/ToolCollection/clsNIFulltext.vb index 3d2cde4..5dbe59f 100644 --- a/ToolCollection/clsNIFulltext.vb +++ b/ToolCollection/clsNIFulltext.vb @@ -87,7 +87,7 @@ Public Class clsNIFulltext End If Else 'Es gibt nur From, also auch nur einen Wert - If Pos_From = oCountMatchedElements Then + If Pos_From = i Then 'Das Ende ist erreicht - Ausstieg ReDim Preserve Ergebnis(0) Ergebnis(0) = Convert.ToString(g.ToString)