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> 


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

Up: Wizard XML Syntax
Previous: Save  Next: SetDefault 

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

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox