</head> <body> <h1>StringLen</h1> <p>Retrieves the count of how many characters are in a string.</p> <p class="warning"><strong>Deprecated:</strong> This command is not recommended for use in new scripts. Use the <a href="StrLen.htm">StrLen</a> function instead.</p> <pre class="Syntax"><span class="func">StringLen</span>, OutputVar, InputVar</pre> <h2 id="Parameters">Parâmetros</h2> <dl> <dt>OutputVar</dt> <dd>The name of the output variable in which to store the length.</dd> <dt>InputVar</dt> <dd>The name of the input variable whose contents will be measured. Do not enclose the name in percent signs unless you want the <em>contents</em> of the variable to be used as the name.</dd> </dl> <h2 id="Remarks">Remarks</h2> <p>If <var>InputVar</var> is a variable to which <a href="../misc/Clipboard.htm#ClipboardAll">ClipboardAll</a> was previously assigned, StringLen will retrieve its total size.</p> <h2 id="Related">Tópicos relacionados</h2> <p><a href="StrLen.htm">StrLen()</a>, <a href="IfInString.htm">IfInString</a>, <a href="StringGetPos.htm">StringGetPos</a>, <a href="StringMid.htm">StringMid</a>, <a href="StringTrimLeft.htm">StringTrimLeft</a>, <a href="StringTrimLeft.htm">StringTrimRight</a>, <a href="StringLeft.htm">StringLeft</a>, <a href="StringLeft.htm">StringRight</a>, <a href="StringLower.htm">StringLower</a>, <a href="StringLower.htm">StringUpper</a>, <a href="StringReplace.htm">StringReplace</a></p> <h2 id="Examples">Exemplos</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> Retrieves and reports the count of how many characters are in a string.</p> <pre>StrValue := "The quick brown fox jumps over the lazy dog" StringLen, Length, StrValue MsgBox, The length of the string is %Length%.</pre> </div> </body> </html>