Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetHighWord Function

Overview

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

Syntax/Parameters

Syntax

word = GetHighByte ( 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 high word of data.

Remarks

The GetHighWord function performs the mathematical equivalent of:

value = (data & 0xFFFF0000) >> 16;

Passing the GetHighWord 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