###User Defined Function###
_ArraySwap

###Description###
Swaps full or part columns/rows within a 1D or 2D array

###Syntax###
#include <Array.au3>
_ArraySwap ( ByRef $aArray, $iIndex_1, $iIndex_2 [, $bRow = False [, $iStart = 0 [, $iEnd = 0]]] )


###Parameters###
@@ParamTable@@
$aArray
	Array to modify
$iIndex_1
	Index of first column/row to swap
$iIndex_2
	Index of second column/row to swap
$bRow
	[optional] If True then indices refer to rows; if False (default) indices refer to columns
$iStart
	[optional] Index in column/row to start swap
$iEnd
	[optional] Index in column/row to end swap
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1
Failure:	-1 and sets the @error flag to non-zero.
@error:	1 - $aArray is not an array
	2 - $aArray is not a 1D or 2D array
	3 - $iIndex_1 or $iIndex_2 is outside array bounds
	4 - $iStart or $iEnd outside array bounds
	5 - $iStart is greater than $iEnd
@@End@@


###Remarks###
None.


###Related###
_ArrayReverse


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