This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

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> 


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Syntax Library: Tutorials, Wizards and Timelines : Tinderbox Wizards : A 'wizard.twiz' file : Wizard XML Syntax : Set