Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetLowWord Function

Overview

The GetLowByte function retrieves the low word (16 bits) from the source data dword.

Syntax/Parameters

Syntax

word = GetLowWord ( dword data );

Parameters

data

A dword (or any integer form). The value is treated as a 32 bit dword data type.

Return Value

Returns a word representing the low word of data.

Remarks

The GetLowWord function performs the mathematical equivalent of:

value = data & 0x0000FFFF;

Passing the GetLowWord function an inappropriate parameter (such as a string) results in a hard runtime error, and the script will abort.

Related Functions

Platform Support

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

Legato IDE, Legato Basic