ArborX


length

Longname: length   Open the Documentation Legend
Released: 7.80 
Created: 7.80 
See also: var stream mini getvar expr show Technote: 0080

Summary
A keyword used with function variables: ^[funcname parameter(s)]. This syntax can be used anywhere that a regular 3B2 variable can be used: in show strings, in scripts, in expressions, etc. Function variables are a V8 feature that uniforms variable use and functions into a readable syntax. The 'length' function return the length in number of characters of any given string.
Example extract

The following show string will display the current value of the th command (text height).

 <?show ^[prop th]?>

Syntax (7.80)
length string:t
string:t

Ant direct string or variable with string assigned to it.

Get the length of the string assigned to the 'myvar' variable.

 <?show $^[length ^myvar]>

Get the length of the direct string.

 <?show $^[length This text is 31 characters long]>

Document created on 11-Nov-2004 (revision 1)