###Function###
UBound

###Description###
Returns the size of array dimensions.

###Syntax###
UBound ( Array [, Dimension = 1] )


###Parameters###
@@ParamTable@@
Array
	The array variable which is being queried.
Dimension
	[optional] Which dimension of a multi-dimensioned array to report the size of:
		$UBOUND_DIMENSIONS (0) = Number of subscripts in the array
		$UBOUND_ROWS (1) = Number of rows in the array (default)
		$UBOUND_COLUMNS (2) = Number of columns in the array
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the size of the array dimension.
Failure:	0 and sets the @error flag to non-zero.
@error:	1 = Array given is not an array.
	2 = Array dimension is invalid.
@@End@@


###Remarks###
$UBOUND_* constants require #include <AutoItConstants.au3>
Remember that the value returned by <a href="UBound.htm">UBound()</a> is one greater than the index of an array's last element.


###Related###
<a href="../keywords/Dim.htm">Global/Local</a>, <a href="../keywords/ReDim.htm">ReDim</a>, IsArray


###Example###
@@IncludeExample@@
