Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

SGMLCharEntityToValue Function

Overview

The SGMLCharEntityToValue function returns the character value (position) of a supplied character entity. If an entity name was used, the entity value must be defined in the DTD.

Syntax/Parameters

Syntax

int = SGMLCharEntityToValue ( handle hSGML, string value );

Parameters

hSGML

A handle to an SGML Object.

value

A string containing a character entity value.

Return Value

An int as the character value or zero (0) on error. Use the GetLastError function to retrieve a formatted error code. Improperly formatted or undefined entities will result in an error.

Remarks

The SGMLCharEntityToValue function processes decimal, hex and entity names (based on the DTD). The character value returned will be a 16-bit UNICODE value.

Related Functions

Platform Support

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

Legato IDE, Legato Basic