Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

SGMLSetPosition Function

Overview

The SGMLSetPosition function sets the parse position to a specific file location for the next parse action.

Syntax/Parameters

Syntax

int = SGMLSetPosition ( handle hSGML, int x, int y );

Parameters

hSGML

A handle to an SGML Object.

x

An int as a zero-based native file X (character) position.

y

An int as a zero-based file Y (line) position.

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 if any item functions are used to retrieve the position, such as SGMLGetItemPosition, without first performing a parse action, the position returned will not be position set by this function.

Related Functions

Platform Support

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

Legato IDE, Legato Basic