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

get the executionContexts

Introduced
1.1
Environment
Desktop, Web and Server
Platform Support
Mac OS X,Windows,Linux
Security
None required
Summary
Reports information on the current state of the running application.
Examples

on errorDialog
local tHandler
put item -2 of line -2 of the executionContexts into tHandler
answer "An error occurred in the handler: " & tHandler
end errorDialog

Additional Comments
Expander triangle

Use the executionContexts property to obtain information about the state of your program, particularly when debugging and error handling.

Value

The executionContexts is similar to a call stack, it consists of a list of contexts, one per line, with the most recent context at the end.

Each context is a string of the form:

<object-long-id>,<handler-name>,<line-number>

Important: The value of the executionContexts may be changed in future versions of Revolution, it is not recommended to write code that depends on its contents.

Comments

The last line of the executionContexts represents the current context, i.e. the line of code last executed.

A common use of the executionContexts is to obtain the name of the object and handler that called the current handler, this information is available as: line -2 of the executionContexts.

The executionContexts property is read-only and cannot be set.

User Comments
Expander triangle