Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDACSetItem Function

Overview

The EDACSetItem function sets a field into an EDAC Object at a named position.

Syntax/Parameters

Syntax

int = EDACSetItem ( handle hEDAC, string name, [string data] );

Parameters

hEDAC

A string containing the response message. Or,

name

A string containing a well known compound name.

data

An optional string value containing the data to load into the named position.

Return Value

Returns an int value as field size or a formatted error code on failure. Use the GetLastError function to retrieve a formatted error code and GetLastErrorMessage function to retrieve textual detail.

See ERROR_CONTEXT sub codes at the beginning of this section.

Remarks

Data items are internally stored as strings, boolean, integer ordinals and dates. All are converted from a string as follows:

Strings — Copied as is within the limitations of the field. To read the maximum size of a field, omit the data parameter.

Boolean — Sets true for: “true”, “t”, “yes”, “[x]”, “y”, “|x|”, “x”, or “/x/” otherwise set to false. The incoming value is tested using the logic of the IsTrue function.

Integer Ordinal — The keyword must match the keyword used within the XML representation of the field.

Integer — The value is converted to a decimal string.

If the name specifies as position that is out of range, an attempt is made to allocate to that position. If the allocation exceeds internal limited, an error is returned.

Related Functions

Platform Support

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