﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2098	_ArraySearch and StringInStr Problem / Bug?	anonymous		"Hi,

iam not sure but i think we found a Bug in _ArraySearch and/or in StringInStr.

I will explain you the Problem.

Create a Array ""DNSServer""  with the following Ip Addresses:
192.168.2.2
192.168.2.25
192.168.2.255

and a Second Array $infoarr with 

192.168.2.1
192.168.2.255

;Now search we search in the infoarr Array for the IP Addresses in the Array ""DNSServer""

for $a = 1 to 1

	For $i=1 to UBound($DNSServer)
	$sSearch = $DNSServer[$i-1]
    $sColumn = ""2""
;If @error Then Exit
$sColumn = Int($sColumn)
$iIndex = _ArraySearch($infoarr, $sSearch,0,0,0,1,-1,$sColumn)

    For $j=1 to UBound($infoarr)
		;msgbox(0,"""",$sSearch & "" "" & $infoarr[$j-1][2])
		;if ($sSearch =$infoarr[$j-1][2]) Then
		;msgbox(0,"""",$sSearch & "" "" & $infoarr[$j-1][2])
		;EndIf
		
		$location = StringInStr($infoarr[$j-1][2], $sSearch, 2)
			if $location > 0 Then
			msgbox(0,"""",""found"")
			msgbox(0,"""",$sSearch & "" "" & $infoarr[$j-1][2])
			EndIf

		Next

We get 3 Results (192.168.2.2,192.168.2.25,192.168.2.255) but we search only for 192.168.2.255.

Can you help me here?

Steve
  "	Bug	closed		AutoIt	3.3.8.0	None	No Bug		
