﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1964	can't make zero-length array, array functions messed up	jmichae3@…		"http://www.autoitscript.com/autoit3/docs/keywords/Dim.htm

I tried 
dim $array[0]
""Array subscript variable badly formatted""

this OUGHT to work to make an empty array, and should not be a foreign concept, especially since we have _ArrayAdd and _Array_Delete

so I tried 
$array=0
_ArrayAdd($array,""abc"")
_ArrayDisplay($array)
however, when I try to do _Array_Add it does not add the string.  when I do _ArrayDisplay the array display window does not pop up.  your arrays (or documentation) are totally messed up.

more evidence that something is wrong:
dim $array[1]
_ArrayAdd($array,""abc"")
_ArrayAdd($array,""def"")
_ArrayAdd($array,""ghi"")
_ArrayDisplay($array)
$s=_ArrayToString($array, "","")
msgbox(0,""result: there should be no leading comma, but there is"", $s)
the result is 
,abc,def,ghi

workaround:
dim $array[1] ;define supposedly empty array
$array=0 ;undefine array
dim $array[1] ;redefine supposedly empty array
_ArrayAdd($array,""abc"")
_ArrayAdd($array,""def"")
_ArrayAdd($array,""ghi"")
_ArrayDisplay($array)
$s=_ArrayToString($array, "","", 1) ;avoid the problem of the default zero index
msgbox(0,""result"", $s)

please post this in the manual (you can tweak the comments if you like) - and could you have an array section of the manual please?  arrays are very important, they are a data type too.  I don't know why they are missing from the data types in the docs.

I need something that's the equivalent of a C++ vector or list right now.  I think that's what you were almost trying to achieve (what you have also works as a queue or stack, but note that these also must start at *empty*).  it should be something that can start at *empty* (like for keeping track of the contents of a combo box or list box control) and I can find out the size of at any time, and 
states that to make a zero-length array, you simply assign

some of your array functions by default treat arrays as if they can have a starting index of 0.  this is incorrect.  my best understanding is that arrays are 1-based, and that index 0 is used as the array size, but in my case I am finding that index 0 is entirely blank when I use _Array_Add().  maybe it's to show that the array index *can* be 0, though it should be 1.  unfortunately, the default is 0. _ArrayBinarySearch, _ArrayConcatenate, _ArrayDisplay (iTranspose), _ArrayFindAll, ArraySearch, _ArrayMax, _ArrayMaxIndex, _ArrayMin, _ArrayMinIndex, _ArrayReverse, _ArraySort, _ArrayToClip, _ArrayToString, _ArrayTrim, _ArrayUnique (please decide on whether arrays are 0 or 1-based and make all your functions work accordingly! it's making my programs not work!  and please be wise)

"	Bug	closed		AutoIt	3.3.6.1	None	Completed		
