Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

GetNumericType Function

Overview

The GetNumericType function performs a more detailed analysis of the content of a provided word and returns the type and attributes specific to numeric data.

Syntax/Parameters

Syntax

dword = GetNumericType ( string data );

Parameters

data

A string containing a word with no spaces.

Return Value

Returns a dword containing the attributes from the word scan.

Remarks

Unlike the GetWordType function, the GetNumericType function performs structural analysis of the content of the number and returns the same sub codes as the GetWordType function.

The specific flags are as follows:

  Definition   Bitwise   Description
  WT_NUMBER_NEGATIVE   0x01000000   Negative Number (000) or -000
  WT_NUMBER_IN_HOLE   0x02000000   Negative Number (000)
  WT_NUMBER_FOOTNOTE   0x04000000   Has Footnote
  WT_NUMBER_CURRENCY   0x08000000   Has Currency
  WT_NUMBER_PERCENT   0x10000000   Has Percent
  WT_NUMBER_IN_HOLE_ERROR   0x20000000   Error in Parenthetical
  WT_NUMBER_BAD_FORMAT   0x40000000   Bad Format (characters, not structure)

 

Each case section can then count or act upon the details of the item.

Related Functions

Platform Support

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

Legato IDE, Legato Basic