Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

SGMLSetDataRange Function

Overview

The SGMLSetDataRange function sets or restricts the parsing range for the SGML Object’s parser.

Syntax/Parameters

Syntax

int = SGMLSetDataRange ( handle hSGML, int s_x, int s_y, [int e_x, int e_y] );

Parameters

hSGML

A handle to an SGML object.

s_x   s_y

Two int values specifying the zero-based starting position. The X (character) position is native.

e_y   e_y

An optional set of two int values specifying the zero-based ending position. The X (character) position is native. If omitted, the position is set to the end of the data. 

Return Value

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

Remarks

This function resets the parse position such that the next parse operation starts at the specified position. The x and y position must specify a valid location within the object’s data.

Note that when a string is set within the object, it also will be referenced by x and y positions after mapping.

Related Functions

Platform Support

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

Legato IDE, Legato Basic