Aide:Eval.txt

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

Document original V3.3.6.1 :

###Function###
Eval

###Description###
Return the value of the variable defined by an string.

###Syntax###
Eval ( string )


###Parameters###
@@ParamTable@@
string
	string representing name of the variable.
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns the value of the variable.
Failure:	Returns "" (blank string) with @error set not to 0.
@@End@@


###Remarks###
If there is a need to use Eval() to to read a variable, the in most situations Assign() should be used to create/write to the variable and IsDeclared() should be used to check that the variable exists.

###Related###
IsDeclared, Assign, Execute


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


Document traduit V3.3.6.1 :

###Function###
Eval

###Description###
Retourne la valeur de la variable définie par une chaîne de caractère.


###Syntax###
Eval ( string )


###Parameters###
@@ParamTable@@
string
	Chaîne de caractères représentant la variable.
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne la valeur de la variable.
Échec:	Retourne une chaîne vide et met @error <> 0.


###Remarks###
Si l'utilisation de la fonction Eval() s'avère nécessaire pour lire une variable, dans la plupart des situations Assign() devrait être utilisé pour la créer ou l'écrire, et la fonction IsDeclared devra être utilisée afin de vérifier qu'elle existe.


###Related###
<a href="IsDeclared.htm">IsDeclared</a>, <a href="Assign.htm">Assign</a>, <a href="Execute.htm">Execute</a>


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


Traducteur : ZDS

Contributeurs (pour les modifications avant le Wiki) : Tlem