Aide:Enum.txt

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

Document original V3.3.6.1 :

###Keyword###
Enum

###Description###
Enumerates constants.

###Syntax###
[<i>scope</i>] <b>Enum</b> [<b>Step</b> &lt;stepval&gt;] &lt;constantlist&gt;

###Parameters###
@@ParamTable@@
scope
	[optional] The scope the Enum should be placed in, either Local, Global, Dim or none.  If none, Dim behavior is used.
stepval
	[optional] The default step is to add 1.  Other possible step methods are: *n, +n, -n where n is a whole number.
constantlist
	A list constants to be enumerated.
@@End@@


###Remarks###
By default, the first constant will be 0 and the rest will be incremented by 1 from there.
When using the multiply operator to step, the first constant will be assigned 1 and the rest will be multiplied based on the previous constant value.
Constants can be explicitly assigned by any valid statement.

###Related###

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


Document traduit V3.3.6.1 :

###Keyword###
Enum

###Description###
Énumère les constantes.


###Syntax###
[<i>scope</i>] <b>Enum</b> [<b>Step</b> &lt;stepval&gt;] &lt;constantlist&gt;


###Parameters###
@@ParamTable@@
scope
	[optionnel] La portée de Enum devrait être mentionnée en, Local, Global, Dim ou rien.  Si rien, le comportement de Dim est utilisé.
stepval
	[optionnel] Le pas par défaut est d'ajouter 1.  D'autres méthodes de pas sont possibles : *n, +n, -n où n est un nombre entier.
constantlist
	Une liste de constantes à énumérer.
@@End@@


###Remarks###
Par défaut, la première constante sera 0 et le reste sera incrémenté de 1 à partir de là.
Lorsqu'on utilise l'opérateur de la multiplication comme pas, la première constante sera 1 et le reste sera multiplié avec la valeur qui le précède.
Les constantes peuvent être assignées explicitement par une déclaration valide.

###Related###
Aucune


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


Traducteur : jbnh

Contributeurs (pour les modifications avant le Wiki) :