Aide:ReDim.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Keyword###
ReDim

###Description###
Resize an existing array

###Syntax###
<b>ReDim</b> $array<b>[</b>subscript 1<b>]</b>...<b>[</b>subscript n<b>]</b>

###Parameters###
@@ParamTable@@
$array
	The name of the array to resize.
subscript
	The number of elements to create for the array dimension, indexed 0 to n-1.
@@End@@


###Remarks###
The ReDim keyword is similar to <a href="Dim.htm">Dim</a>, except that ReDim preserves the values in the array instead of removing the values while resizing an array.  The number of dimensions must remain the same, or the old array will be forgotten during the ReDim.  The array will retain the scope (Global or Local) that it had prior to resizing.


###Related###
Dim, UBound


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


Document traduit V3.3.6.1 :

###Keyword###
ReDim

###Description###
Redimensionne un tableau existant


###Syntax###
<b>ReDim</b> $array<b>[</b>subscript 1<b>]</b>...<b>[</b>subscript n<b>]</b>


###Parameters###
@@ParamTable@@
$array
	Le nom du tableau à redimensionner.
subscript
	Le nombre d'éléments pour le redimensionnement du tableau, indexe de 0 à n-1.
@@End@@


###Remarks###
Le mot-clé ReDim est similaire à <a href="Dim.htm">Dim</a>, sauf que ReDim préserve les valeurs du tableau, au lieu de supprimer les valeurs lors du redimensionnement.  Le nombre de dimensions doit rester le même, ou l'ancien tableau sera oublié lors du redimensionnement.  Le tableau conservera la portée (Global ou Local) qu'il avait avant le redimensionnement.


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


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


Traducteur : Tlem