Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

SGMLTWIPSToValue Function

Overview

The SGMLTWIPSToValue function converts a integer value of TWIPS to a pvalue.

Syntax/Parameters

Syntax

PVALUE = SGMLTWIPSToValue ( int value, PVALUE units, [boolean round] );

Parameters

value

An int specifying measurement in TWIPS (twentieth of points).

units

A PVALUE (dword) to use as a base for the units. The value portion is ignored.

round

A boolean to indicate whether to round the value to whole units. The default is FALSE.

Return Value

A PVALUE (dword) as the result of the translation or PT_UNTRANSLATED on error. The GetLastError function will return ERROR_SYNTAX.

Remarks

The unit parameter must be a measurement.

Related Functions

Platform Support

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

Legato IDE, Legato Basic