Aide:StringLeft.txt

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

Document original V3.3.6.1 :

###Function###
StringLeft

###Description###
Returns a number of characters from the left-hand side of a string.

###Syntax###
StringLeft ( "string", count )


###Parameters###
@@ParamTable@@
string
	The string to evaluate.
count
	The number of characters to get.
@@End@@


###ReturnValue###
Returns a string containing the <i>leftmost</i> count characters of the string.


###Remarks###
If <i>count</i> exceeds string length, the entire string is returned.
If <i>count</i> is negative, an empty string is returned.

###Related###
StringInStr, StringLen, StringLower, StringMid, StringRight, StringTrimLeft, StringTrimRight, StringUpper, StringCompare, StringReplace, StringSplit


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


Document traduit V3.3.6.1 :

###Function###
StringLeft

###Description###
Retourne un nombre de caractères à partir de la gauche d'une chaîne.


###Syntax###
StringLeft ( "string", count )


###Parameters###
@@ParamTable@@
string 
	La chaîne à évaluer.
count
	Le nombre de caractères à obtenir.
@@End@@


###ReturnValue###
Retourne une chaîne contenant le nombre souhaité de caractères <i>les plus à gauche</i> de la chaîne.


###Remarks###
Si <i>count</i> excède la longueur de chaîne, la chaîne entière est retournée.
Si <i>count</i> est négatif, une chaîne vide est retournée.


###Related###
<a href="StringInStr.htm">StringInStr</a>, <a href="StringLen.htm">StringLen</a>, <a href="StringLower.htm">StringLower</a>, <a href="StringMid.htm">StringMid</a>, <a href="StringRight.htm">StringRight</a>, <a href="StringTrimLeft.htm">StringTrimLeft</a>, <a href="StringTrimRight.htm">StringTrimRight</a>, <a href="StringUpper.htm">StringUpper</a>, <a href="StringCompare.htm">StringCompare</a>, <a href="StringReplace.htm">StringReplace</a>, <a href="StringSplit.htm">StringSplit</a>


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


Traducteur : Strofe

Contributeurs (pour les modifications avant le Wiki) : Tlem