LlStringLength/fr: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Gally Young (talk | contribs)
Localized to french
(No difference)

Revision as of 14:42, 21 March 2008

Description

Fonction: integer llStringLength( string str );

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.