﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
403	Different results for both for loops	anonymous		"The two available for loops create different results, when nummeric values are used. For..to..Next works as expected (results are numerical values), For..in..Next creates string values from numeric data types. I would expect both loops to do the same in this case.

{{{
;For loops create different results with numeric arrays
Dim $Array1[2]
Dim $Array2[2]

For $Item in $Array1
	$Item = 5
Next

For $Index = 0 to 1
	$Array2[$Index] = 5
Next

$Result1 = ""Array1[0] is String: "" & IsString($Array1[0]) & "", is Number: "" & IsNumber($Array1[0])
$Result2 = ""Array2[0] is String: "" & IsString($Array2[0]) & "", is Number: "" & IsNumber($Array2[0])

MsgBox(0, ""For loop results"", $Result1 & @CR & $Result2)
}}}"	Bug	closed		AutoIt	3.2.12.0	None	No Bug	for loop	
