Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

LogGetMessageProperties Function

Overview

The LogGetMessageProperties function retrieves all the properties associated with a message at a specific index within a log.

Syntax/Parameters

Syntax

string [] = LogGetMessageProperties ( [handle hLogObject], int index );

Parameters

hLogObject

A handle to a Log Object created with the LogCreate function. If this handle is omitted or NULL_HANDLE is specified, the function will obtain the error summary to the default log.

index

An int that specifies the zero-based index of the message. The LogGetMessageCount function with a parameter of LOG_NONE can be used to retrieve the total number of messages, which is the upper limit of the index.

Return Value

Returns a string array with named items for each property or an empty array on failure. Use the GetLastError function to retrieve error information.

Remarks

The key names are as follows:

  Key Name   Description  
  Message   Raw message text. Text or simple HTML.  
  Flags   Hex string of 32-bit raw flags.  
  Type   Decimal string for message type.  
  SX   Zero-based decimal string for start X target position.  
  SY   Zero-based decimal string for start Y target position.  
  EX   Zero-based decimal string for end X target position.  
  EY   Zero-based decimal string for end Y target position.  
  Page   Decimal string for target page position.  
  ID   Message ID string.  
  FieldName   Field name (if appropriate) for message.  
  OffendingValue   Offending or related value (if appropriate) for message.  
  Target   Target filename and path for message.  
  CallerOffset   Hex string of 32-bit raw flags.  
  CallerString1   Caller string.  
  CallerString2   Caller string.  
  CallerString3   Caller string.  
  CallerString4   Caller string.  
  CallerData1   Hex string of 32-bit raw flags.  
  CallerData2   Hex string of 32-bit raw flags.  
  CallerData3   Hex string of 32-bit raw flags.  
  CallerData4   Hex string of 32-bit raw flags.  

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic