﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3643	For...To...Step...Next - variable is NOT (see Remarks in AutoIt Help) in Local scope!	Bitnugger		"{{{
#include <AutoItConstants.au3>

Local $sScope, $sRemarks = ' --> Remarks: The variable will be created automatically with Local scope, even when MustDeclareVars is on.'
ConsoleWrite('> For $i = 0 To 1 Step 1' & @CRLF)
For $i = 0 To 1 Step 1
	ConsoleWrite('@ $i = ' & $i & @CRLF)
Next
Switch IsDeclared('i')
	Case $DECLARED_GLOBAL  ;  1
		$sScope = '! $i = $DECLARED_GLOBAL  ( 1) '
	Case $DECLARED_LOCAL   ; -1
		$sScope = '+ $i = $DECLARED_LOCAL   (-1) '
	Case $DECLARED_UNKNOWN ;  0
		$sScope = '- $i = $DECLARED_UNKNOWN ( 0) '
EndSwitch
ConsoleWrite($sScope & $sRemarks & @CRLF)

}}}
"	Bug	closed		AutoIt	3.3.14.5	None	No Bug		
