Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6c

Application v 6.1a

  

 

Chapter SixteenApplication (continued)

EventLogWrite Function

Overview

The EventLogWrite function writes a message to the event log.

Syntax/Parameters

Syntax

int = EventLogWrite ( handle hObject, string format, [parameters ...] );

Parameters

hObject

A handle to an Event Log Object.

format

A string containing a template that specifies the structure of the resulting string. See Section 5.2 String Functions for information on creating formatted strings.

parameters

Zero or more parameters to be formatted and inserted into format. If no parameters are supplied, the template is simply passed through to the result string. A parameter value cannot resolve to a dimensional array.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

The messages will automatically has line ending added unless the Line Endings option is set to false.

[what is the difference between this and AddMessage?]

Related Functions:

Platform Support

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

Legato IDE

Page revised 2025-06-16