Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

SGMLFindClosingElement Function

Overview

The SGMLFindClosingElement function looks for a matching closing element based on the current element and gathers HTML or text during the search.

Syntax/Parameters

Syntax

string = SGMLFindClosingElement ( handle hSGML, dword flags );

Parameters

hSGML

A handle to an SGML object.

flags

An optional dword specifying operational flags. If omitted, the default is SP_FCE_TRANSLATED_TEXT.

Return Value

A string containing the HTML or ANSI code between the current tag and the tag found. The string will be empty on error. Use the GetLastError or IsError function to check whether an error occurred or valid empty tag set was returned.

Remarks

The current item must be an open tag. The content of the returned string is determined by the flags parameter:

  Defined   Bitwise   Description
  SP_FCE_NONE   0x00000000   No Flags
  SP_FCE_TRANSLATE_CHARS   0x00000001   Translate Characters to ANSI
  SP_FCE_TEXT_ONLY   0x00000002   Get Just the Text from Content
  SP_FCE_TRANSLATED_TEXT   0x00000003   Combination
  SP_FCE_CODE_AS_IS   0x00000010   Return Code As Is (not white spaced)
  SP_FCE_INCLUDE_WRAPPER   0x00000020   Adds Open and Close Tags

 

The returned string cannot be larger than 2MB.

Related Functions

Platform Support

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

Legato IDE, Legato Basic