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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user