|
|
This section defines the type casts that can be used with FMLI.
A file type cast is an identifier that indicates to FMLI the type of frame definition file being opened when the file's name does not follow the naming conventions for frame definition files. There are three type casts for frame definition files: MENU, FORM, and TEXT. Each can be used as the first argument to the open command. For example,
action=open form user.addressidentifies user.address as a form definition file. A frame definition file can be identified by using both the file naming convention and a type cast, although only one or the other is required.
Note that file type casts cannot be used to identify the initial frame(s) to open when fmli is invoked.
By default, FMLI determines how often
descriptors are evaluated.
You can use the const type cast to make sure
that a descriptor is evaluated only once, no matter how
many times it is referenced, or
the vary type cast to make sure that
a descriptor is evaluated whenever it is referenced.
In either case, the cast must appear immediately after the
equal sign (``='') on the descriptor line, as in the following:
show=const `set -l DAY=date +%a; test "$DAY" = "Friday"`
We will explain what this example does, and more generally, why you might want to use const and vary in ``Descriptor evaluation''.