Tag Type | C++ code (built in to libRPM/VarCache.cc) | |
---|---|---|
Attributes | [name=]string | Required. Gives the name of the variable which will later be referenced in the var=... attributes of any of the Form element tags. |
pubName=string | Optional. Use if the external databases know this variable by a different name. | |
value=string | Optional. Assigns a value directly to the variable. | |
delim=char | If this is specified, then when multiple values are assigned to the var (as with the {Menu multiple ...} tag), they will be separated by this character. | |
loc=string and method=methname |
Optional. Specifies a location and access method for obtaining the value of the variable. The method= can be omitted with the file name or location ends in .rpm, .par, or .sh. See also information on built-in rpm access methods in the RPM user's manual. | |
NOTE: If both loc= and value= are omitted, the last loc= will be used. | ||
Contained Tags | None. | |
Related Tags | Var tags are ignored unless they appear in the Private or Public sections of an HForm document. | |
Examples |
{Var name="speed" value="55"}
{Var name="speed_limit" loc="data.par" method="par"}
{Var name="speed" value="55" type="integer"}
{Var name="speed" value="55" type="integer" min="0" max="75"}(Note how arbitrary white space within RPM tags is ignored.)