Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

LogSetPosition Function

Overview

The LogSetPosition function sets the position of the event (such as the event that produced the error) in the target file for a corresponding message added to a log using the AddMessage function. This information is added as a Log Object type.

Syntax/Parameters

Syntax

int = LogSetPosition ( [handle hLogObject], [int sx, int sy, [int ex, int ey]] );

Parameters

sx   sy

Optional int values specifying the starting position (column, row). All values are zero-based positions. If omitted, the value will be set to -1 (invalid position).

ex  ey

Optional int values specifying the ending position (column, row). All values are zero-based positions. If omitted, the value will be set to -1 (invalid position). In order to specify ex and ey, sx and sy must also be specified.

Return Value

Returns an int as ERROR_NONE.

Remarks

The LogSetPosition function can provide information in the log file or Log Object about where in the target the message (such as an error or warning) occurred. The sx, sy, ex, and ey parameters can delineate this location. If the log is displayed in the Information View, this information can be used to position the target file display and caret for the user. The validity of the position are not checked against the target file.

Related Functions

Platform Support

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

Legato IDE, Legato Basic