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.
This commit is contained in:
OlgunR
2026-04-23 10:23:12 +02:00
parent a0ec897784
commit a374b55ba2

View File

@@ -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)