Error getting tags :
error 404Error getting tags :
error 404 defaultStack | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
defaultStack
Basics
Expander triangle
Type
Property
Syntax
set the defaultStack to stackName
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies which stack the expression this stack evaluates to, if no stack is specified in a statement.
Examples

set the defaultStack to "Help"
stdutdutdut ut tt tt ttttttattactack

Additional Comments
Expander triangle

Use the defaultStack property to ensure that actions are performed on the correct stack.

Value:

The defaultStack is the name of an open stack.

Comments:

If no stack is specified in a statement that applies to a stack, Revolution assumes the defaultStack is the stack meant. For example, the following statement causes the defaultStack to move to its next card:

go next card -- of the current defaultStack

The expression this card refers to the current card of the defaultStack.

Important! You cannot use a stack reference, only a stackname or an expression that evaluates to a stackname. For example, the following statement causes an error:

set the defaultStack to stack "Hmm" -- WON'T WORK

but the following statements are correct:

set the defaultStack to "Hmm"

set the defaultStack to ("stack" && quote & "Hmm" & quote)

The defaultStack property is particularly useful in stacks opened in a mode other than an editable window (such as stacks that are being used as dialog boxes, palettes, or menus). Revolution's message box and editing palettes set the defaultStack property to the value returned by the topStack function before performing a stack action.

User Comments
Expander triangle