Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FourteenProject Functions (continued)

ProjectGetValidator Function

Overview

The ProjectGetValidator function returns the properties associated with a specific validator index.

Syntax/Parameters

Syntax

string [] = ProjectGetValidator ( int index );

Parameters

index

An int from 0 to the maximum number of validators.

Return Value

Returns a string array containing the properties associated with the specified validator or an empty array on error. Use the GetLastError function to retrieve error information.

Remarks

Each of the properties is identified with named keys as follows:

  Element Key Name   Description
       
  FileTypeCode   A string as a hex code representing the file type associated with the validator. Note that these values may change from application version to version.
  FileType   File type in string form (e.g., FT_HTML).
  Hook   The name of the attached hook. The value will be “(internal)” if the hook is handled by the application. Otherwise, it will be the name of the attached script.
  DefaultMessageString   A string to place in the log if there is no attached validator.
  DefaultMessageType   A string as a decimal value as the type of message to place in the log. See Log Message Types in Chapter 5.

 

Use the GetLastError function to differentiate between an empty return array caused by an empty validator slot or caused by an error.

Related Functions

Platform Support

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