LlStringLength/fr
Jump to navigation
Jump to search
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Fonction: integer llStringLength( string str );| 128 | N° de fonction |
| 0.0 | Delais |
| 10.0 | Energie |
Renvoie un integer correspondant au nombre de caractères dans le str (sans compter les nulls).
| • string | str |
Exemples
// supposition :
// nom objet : LSLWiki
// nom script : _lslwiki
default
{
state_entry()
{
string HowLongAmI = "123";
integer strlen = llStringLength(HowLongAmI);
llOwnerSay( "'" + HowLongAmI + "' a " +(string) strlen + " caractères.");
// Le propriétaire de LSLWiki entendra
// LSLWiki: '123' a 3 caractères.
}
}
Voir également
Fonctions
| • | llGetListLength | – | Renvoie le nombre d’éléments d’un list |
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.