###Function###
UBound

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

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


###Parameters###
@@ParamTable@@
Array
	The array variable which is being queried.
Dimension
	[optional] Which dimension of a multi-dimensioned array to report the size of.  Default is 1, which is the first dimension.  If this parameter is 0, the number of subscripts in the array is returned.
@@End@@


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


###Remarks###
Remember that the value returned by UBound is one greater than the index of an array's last element!

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


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