GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Four — Flow Control (continued)
Overview
The EnumerateScripts function loads a string table with active or completed or all scripts.
Syntax/Parameters
Syntax
string [][] = EnumerateScripts ( [int mode] );
Parameters
mode
An optional int specifying what data to retrieve:
ES_ALL — Both active and completed scripts are returned.
ES_ACTIVE — Only active scripts are returned. The scripts need not be running, just loaded.
ES_COMPLETE — Only completed (or failed) scripts are returned.
The default value is ES_ALL.
Return Value
Returns a string table containing a row for each entry and named columns for the specific properties.
Remarks
The column key names are as follows:
Key Name | Description | |||
Type | The type of entry: “Active” or “Completed”. | |||
ScriptHandle | The handle to the script in the form of a hex number: 0x00000000. | |||
ThreadHandle | The thread handle to the script in the form of a hex number: 0x00000000. This value will be zero if the script is running (suspended) in the primary program thread. | |||
ScriptName | The given name of the script. This value can be set by the SetScriptName function. | |||
ScriptDescription | The description of the script. This value can be set by the SetScriptDescription function. | |||
ScriptParent | Calling parent for the script. | |||
StartTime | The date and time the script started in ISO-8601. | |||
EndTime | The date and time the script ended in ISO-8601. If the script has not ended, then this field will not be present. | |||
ResultCode | If the script has completed, the result code from the script in the form of a hex string. If the script was aborted due to a runtime error, this will contain the last error code. | |||
ErrorLog | If an error log is available this value will be ‘1’. | |||
DefaultLog | If the default output log is available this value will be ‘1’. |
Scripts that have complete execution remain in the queue until the handle is closed or the queue times out (approximately 2 minutes). After the time out or close, the results of completed or erroneous scripts can no longer be retrieved.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.