﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
727	Optional parameter not declared when func called via OnEventMode	wraithdu		"This script will crash when the button is clicked with an error saying $var is not declared.  In message mode, this crash does not happen.

{{{
Opt(""GUIOnEventMode"", 1)

$GUI = GUICreate(""GUI"")
$button = GUICtrlCreateButton(""Test"", 10, 10, 50, 20)
GUICtrlSetOnEvent(-1, ""_Test"")
GUISetOnEvent(-3, ""_Exit"")
GUISetState()

While 1
	Sleep(1000)
WEnd

Func _Test($var = """")
	If $var == """" Then Return 0
	Return $var
EndFunc

Func _Exit()
	Exit
EndFunc
}}}"	Bug	closed		AutoIt	3.2.13.11	None	No Bug		
