Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

FieldToParameters Function

Overview

The FieldToParameters function reads a field string on-the-fly without a Field Object and creates a list of parameters.

Syntax/Parameters

Syntax

string[] = FieldToParameters ( string data );

Parameters

data

A string containing the field tag data.

Return Value

A string array containing field parameters or an empty array on failure. Use the GetLastError function to retrieve a formatted error code.

If the field type is not a well known type, the field value is set as the first property. The last error will contain the result bits with the flag FIELD_RESULT_UNKNOWN_FIELD_NAME set.

Remarks

The first entry will be ‘Field’ with a field type name. Each following key name will be the property-value pair for each parameter.

The field entry will always be the field name whether known or unknown. Check the last error to determine there was an error. The codes are as follows:

  Definition   Bitwise   Description  
  Errors          
    FIELD_RESULT_ERROR_MASK   0x0000FFFF   Result Error Mask  
    FIELD_RESULT_UNKNOWN_PROPERTY   0x00000001   Unknown Properties Name  
    FIELD_RESULT_PARAMETER_ERROR   0x00000002   Error in Parameter  
    FIELD_RESULT_UNKNOWN_FIELD_NAME   0x00000004   Unknown Field Name  
  Conditions          
    FIELD_RESULT_SELF_CLOSE   0x00010000   Field Is Self-Close  
    FIELD_RESULT_STOPPED   0x00020000   Stopped on HTML/XML Tag  
    FIELD_RESULT_DATA   0x10000000   Currently Contains Data  

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic