ArborX


fs

Longname: f ormat s string   Open the Documentation Legend
Released: 7.80 
Created: 7.80 
See also: var 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. 'fs' function is the formet strings function.
Example extract

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

 <?show ^[prop th]?>

Syntax (8.00)
fs fs:n
fs:n

Format string

^[fs 1] is equivalent to the existing ^$(1)

If you do:

 <?show "^[fs 9]"hello>

then

 <?show "^[fs 9]"hello>

will return “hello”. Like x-counters, these are format-proof, i.e. they are not global like normal variables.


Document created on 06-Jan-2005 (revision 1)