Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SeventeenApplication Integration Functions (continued)

GetEditWindowFilename Function

Overview

The GetEditWindowFilename function returns the associated filename for a requested window.

Syntax/Parameters

Syntax

string = GetEditWindowFilename ( handle hwTarget | int index );

Parameters

hwTarget

A handle. If hwTarget is specified, then index cannot be specified.

index

An int containing an Edit Manager window index. If hwTarget is not specified, then index must be provided. The value can be -1 indicating that the active window is requested.

Return Value

Returns a string containing the filename for the window information or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The GetEditWindowFilename function returns the filename either by a window index for the Edit Manager or by a specific window handle. Using a handle is useful to retrieve the type for a specific view. Each window will have an associated mapped text or edit object. Not all windows use the objects in the same manner and, in many cases, the mapped text object is used only for file control, such as in the case of an Image View or data sheet base window.

Note that an untitled window will return an empty string so the GetLastError or IsError function must be used to determine if an error occurred.

If the window is specified as a handle, the request is sent directly to the window.

Related Functions

Platform Support

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

Legato IDE