|
DEFINEVARSyntax
DescriptionDEFINEVAR is used for creating user-defined resource variables. DEFINEVAR can be defined on the command-line or in the resource file. On the command-line, the option is called NAME Multiple name/value pairs are separated
by whitespace.
If VALUE contains whitespace, then it must be surrounded
by quotes to prevent the command shell from treating the string
as multiple arguments.
Multiple
In a resource file the <DEFINEVAR> element may occur mutliple times to define multiple variables. The first line of the <DEFINEVAR> element is the name of the variables. All subsequent lines represent the content of the variable. If you do not want the last newline of a <DEFINEVAR> element content to be part of the defined variable content, then specify the chop attribute. Default SettingN/A Resource VariablesN/A ExamplesThe following is a simple example of defining a variable to represent the base text for the title of an archive: <DefineVar chop> MAIN-TITLE Comp.lang.perl.misc </DefineVar> Now, the variable can be refernced as follows: <TTitle chop> $MAIN-TITLE$ (thread) </TTitle> If you wanted to use the same resource file for multiple arcvhives
it may better to define % mhonarc -definevar MAIN-TITLE='mhonarc mailing list' ... Version2.0 See Also
$Date: 2002/07/27 05:13:10 $ MHonArc Copyright © 1997-1998, Earl Hood, mhonarc@mhonarc.org |