Error getting tags :
error 404Error getting tags :
error 404 filename of stack | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
filename of stack
Basics
Expander triangle
Type
Property
Syntax

set the filename of stack to filePath

Introduced
1.0
Changed
2.8.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Reports the file path of the file a stack is stored in.
Examples

put the filename of this stack into nameToSave
if the effective filename of this stack is savedName then beep
set the filename of this stack to "Test.rev"
set the filename of this stack to "/Volumes/Lizards/Godzilla.rev"

Additional Comments
Expander triangle

Use the filename of stack property to specify where a stack file is stored on the user's system.

Value:

The filename of stack of a stack specifies the name and location of the stack file. If you specify a name but not a location, Revolution assumes the file is in the defaultFolder.

By default, the filename of stack property of newly created stacks is set to empty.

Comments:

If the stack is a main stack, its filename of stack property reports the file path of the file the stack is stored in. If the stack is the main stack of a standalone application, the filename of stack property reports the name and location of the application.

If the stack is a substack, its filename of stack property is empty. To find out what file a substack is stored in, use the form the effective filename of stack. You cannot set the filename of stack property of a substack and attempting to will result in an execution error being thrown.

If the stack has not yet been saved, its filename of stack property is empty.

Cross-platform note: On OS X systems, standalone applications are stored as application bundles. A bundle behaves like a file but is actually a folder, and the main stack of a standalone application is inside this folder. The filename of stackproperty reports the location of the application inside the bundle, not the bundle's location. For example, if the bundle'sfile path is "/Volumes/Disk/MyApp.app/", the filename of the application's main stack might be "/Volumes/Disk/MyApp.app/Contents/MacOS/MyApp".

User Comments
Expander triangle