Set

Tinderbox Icon

<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 

[Last updated: 3 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox