Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

WordParseSetPosition Function

Overview

The WordParseSetPosition function sets the zero-based starting character position for the next word retrieved from a Word Parse Object with the WordParseGetWord function.

Syntax/Parameters

Syntax

int = WordParseSetPosition ( handle hWordParse, int position );

Parameters

hWordParse

A handle to a valid Word Parse Object.

position

An int specifying a zero-based character position within a string.

Return Value

Returns an int as ERROR_NONE on success, ERROR_RANGE if position is beyond the length of the buffer, or ERROR_INVALID_HANDLE if hWordParse is invalid.

Remarks

The WordParseSetPosition function moves the parsing position to the character position specified by the position parameter. This affects the next word returned by the WordParseGetWord function, as well as of the information and flags associated with that word.

If the position parameter falls within a word, the beginning of the return word will be at the position specified.

If the position parameter falls within a leading space, the function moves to the beginning of the next word on the next parse action. The leading space value will reflect the point of the start of the parse action.

Related Functions

Platform Support

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

Legato IDE, Legato Basic