This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Tutorials and Wizards : Tinderbox Wizards : A 'wizard.twiz' file : Wizard XML Syntax : Set | aTbRef Site Map |
Set |
<Set name="screenshot" [type="string"]> string </Set>
Occurs: Inside prepare
Multiple instances: Yes
Has attributes: Yes - name, type
Self-closing: No
Use the Set command to initialise variables for use whilst the wizard is running. It is not necessary to pre-initialise variables to be created on input panels via the result command. Use this to set export locations, images, default choices.
name. The name of the target variable used by this instance of the Set command. If not already defined, this command initiates the variable.
type. [Optional] Acceptable parameters for this option are not know, though 'file' is one such.
Example:
This creates a variable $screenshot :
<Set name="screenshot">:resources:blue.jpg</Set>
The variable is then later used thus:
<picture>$screenshot</picture>
This allocates a file type variable/value:
<Set name="outputFile" type="file">Code Sample Export.tbx</Set>
Up: Wizard XML Syntax | |
Previous: Save | Next: SetDefault |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]