Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

SGMLResetElement Function

Overview

The SGMLResetElement function resets the current SGML/HTML element object, resets any errors and sets an option element token.

Syntax/Parameters

Syntax

int = SGMLResetElement ( handle hSGML, [TOKEN token | string element] );

Parameters

hSGML

A handle to an SGML Object.

token

An optional TOKEN (dword) for an HTML token or other element as defined in the DTD. Or,

element

A string version of the HTML or other element. If the token or element is omitted, the SGML Object element class is initialized with no element value.

Return Value

An int as ERROR_NONE (0) or a formatted error code.

Remarks

If an element name is specified and does not exist, an error will be returned. If the token value is used, it is not tested against the DTD. If an incorrect token value is set, it will result in an error when rendering the tag to text.

Related Functions

Platform Support

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

Legato IDE, Legato Basic