Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter TwoLanguage Overview (continued)

ConsoleToFile Function

Overview

The ConsoleToFile function exports the contents of a console window to a file.

Syntax/Parameters

Syntax

int = ConsoleToFile ( [handle hConsole], string filename );

Parameters

hConsole

An optional handle (or console ID as handle) to a console window. Omitting hConsole will select the default console.

filename

A string specifying the destination filename. If the file exists, it is overwritten.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure.

Remarks

This function only operates on console windows that have been created in GUI mode for the application.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic