ArborX


var

Longname: var iable   Open the Documentation Legend
Released: 7.80 
Created: 7.80 
See also: stream mini getvar fish 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 'var' function provides a generic method for displaying and assigning variable values.
Example extract

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

 <?show ^[prop th]?>

Syntax (7.80)
var name:t
name:t

The name of the variable you want to display.

Show the value of the 'myinfo' variable using a function variable.

 New: <?show $^[var myinfo]>

Show the value of the 'myinfo' variable traditional showstring method.

 Normal: <?show $^myinfo>

Show string 'Arbortext 3B2' into the variable 'myvar' using the funcation variable method.

 New: <?show "^[var myvar]"Arbortext 3B2>

Show string 'Arbortext 3B2' into the variable 'myvar' using the traditional syntax.

 New: <?show "^myvar"Arbortext 3B2>

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