Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

SGMLWriteSegment Function

Overview

The SGMLWriteSegment function allows a segment of encoded data to be directly inserted or replace within the associated Mapped Text or Edit Object.

Syntax/Parameters

Syntax

int = SGMLWriteSegment ( handle hSGML, string data, int sx, int sy, int ex, int ey );

Parameters

hSGML

A handle to an SGML Object.

data

A string value to insert with PCDATA encoding.

sx  sy  ex  ey

A series of int values specifying the position to write the data. The X positions are specified as native values.

Return Value

An int as a formatted error code.

Remarks

SGMLWriteSegment allows direct access to write to the associated Mapped Text or Edit Object This alleviates the need to retrieve an object handle to perform a write segment.

The provided data must be encoded. Since the source segment is PCDATA, the source data can contain raw tags and character entities.

The parse position is not altered, nor is it compensated for. If the operation results in the X/Y position changing, it may no longer be valid after the starting position, the next parse will occur at an undefined location.

Avoid lines larger than 1,048,575 bytes in size.

Related Functions

Platform Support

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

Legato IDE, Legato Basic