Error getting tags :
error 404Error getting tags :
error 404 revLoadedStacks | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revLoadedStacks
Basics
Expander triangle
Type
Function
Syntax
revLoadedStacks([whichStacks])
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns a list of the names of all stacks that are loaded into memory.
Examples

revLoadedStacks(all) -- includes stacks such as message box
revLoadedStacks(application) -- only includes non-Rev stacks
revLoadedStacks() -- respects current preference setting

Additional Comments
Expander triangle

Use the revLoadedStacks function if you need to perform some operation on all stacks that are loaded into memory.

Parameters:

The whichStacks is one of the following:

application: Only your application's stacks

all: All stacks including Revolution development environment stacks

preference: Depends on Preferences setting

Value:

The revLoadedStacks function returns a list of the short names of all loaded stacks, one per line.

Comments:

If the whichStacks parameter is all, the revLoadedStacks function returns all stacks that are loaded into memory, including stacks that are part of the Revolution development environment (such as the message box, property inspector, and so on).

If the whichStacks parameter is application, the revLoadedStacks function returns all loaded stacks that are not part of the development environment.

If the whichStacks parameter is preference, the revLoadedStacks function checks the setting of the "Revolution UI Elements in Lists" item in the View menu, and returns either all stacks, or only stacks that are not part of the development environment, depending on the setting.

If you don't specify an includeRevStacks parameter, the revLoadedStacks function returns all stacks that are loaded into memory.

Note: When included in a standalone application, the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revLoadedStacksfunction is not yet available. This may affect attempts to use this function in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the revLoadedStacksfunction can be used in any handler.

User Comments
Expander triangle