﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2789	With EndWith parameter issue	jaberwacky	Jon	"Sorry for the title.

The following code demonstrates an issue with using parameters using With/EndWith.  If the second parameter is not acessed directly but instead accessed by With then the function fails.  Wow, I really don't have an elegant way to describe this.  Let's let the example, which I haven't run, (provided by FaridAgl) speak for itself.


{{{
Global $oDictionary = ObjCreate(""Scripting.Dictionary"") 

$oDictionary.Add(""A"", ""Value of A"") 

With $oDictionary     
  MsgBox(0, .Count, $oDictionary.Item(""A"")) ;Doesn't fails     
  MsgBox(0, .Count, .Item(""A"")) ;Fails     
  MsgBox(0, $oDictionary.Count, .Item(""A"")) ;Fails too
EndWith
}}}

Forum post: [http://www.autoitscript.com/forum/topic/110379-autoitobject-udf/?p=1182987]"	Bug	closed	3.3.13.13	AutoIt	3.3.13.1	None	Fixed		
