$Len: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (misc formatting) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<p>The $ | <p> | ||
< | The <var>$Len</var> function determines the current length of the value of a <var>String</var>. The <var>$Len</var> function takes a field name, character literal, or %variable as its one argument. </p> | ||
< | |||
</ | ==Examples== | ||
<ol> | |||
<li>The <var>$Len</var> result in the following statement is 4 if the <code>STATE</code> field of the current record contains <code>OHIO</code>: | |||
<p class="code">$ | <p class="code">%n = $len(STATE) | ||
</p> | </p></li> | ||
< | |||
<li>The <var>$Len</var> result in the following statement is 13 if the <code>%name</code> variable has a current value of <code>Richard Smith</code>: | |||
<p class="code">%n = $len(%name) | |||
</p></li> | |||
</ol> | |||
[[Category:SOUL $functions]] | [[Category:SOUL $functions]] |
Latest revision as of 00:08, 22 June 2018
The $Len function determines the current length of the value of a String. The $Len function takes a field name, character literal, or %variable as its one argument.
Examples
- The $Len result in the following statement is 4 if the
STATE
field of the current record containsOHIO
:%n = $len(STATE)
- The $Len result in the following statement is 13 if the
%name
variable has a current value ofRichard Smith
:%n = $len(%name)