- StringAdd
- StringBufferLen
- StringCompare
- StringConcatenate
- StringFill
- StringFind
- StringGetCharacter
- StringInit
- StringLen
- StringSetLength
- StringReplace
- StringReserve
- StringSetCharacter
- StringSplit
- StringSubstr
- StringToLower
- StringToUpper
- StringTrimLeft
- StringTrimRight
StringSetLength
Définit une longueur (en caractères) pour une chaîne de caractères.
bool StringSetLength(
|
Parameters
string_var
[in][out] Chaîne de caractères pour laquelle la nouvelle longueur est à définir.
new_capacity
[in] Longueur désirée de la chaîne en nombre de caractères. Si new_length est inférieur à la taille actuelle, les caractères en excès sont ignorés.
Valeur de Retour
En cas d'exécution avec succès, retourne true, sinon false. Pour obtenir le code d'erreur, il faut appeler la fonction GetLastError().
Note
La fonction StringSetLength() ne change pas la taille du buffer alloué pour une chaîne de caractères.
Voir également
StringLen, StringBufferLen, StringReserve StringInit, StringSetCharacter