Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

IsCurrency Function

Overview

The IsCurrency function tests if a string or character contains accounting style characters.

Syntax/Parameters

Syntax

boolean = IsCurrency ( string value );

boolean = IsCurrency ( wstring value );

boolean = IsCurrency ( char value );

boolean = IsCurrency ( wchar value );

Parameters

value

A string, wstring or

a char, wchar to test. The character can be any type that will resolve to an integer.

Return Value

Returns TRUE if value contains accounting style characters or FALSE if it does not.

Remarks

The IsCurrency function operates in two basic modes: on a string or on a character. Either can be ANSI or Unicode.

For strings, the tested currency characters are dollars ($), pounds (£), yen (¥), euros (€) and cents (¢). In addition, commas (,), periods (.) dashes (-), and parenthesis will test positive.

For characters, the above currency characters are tested. If the character is in the Unicode range, then the Unicode currency set is also tested from 0x20A0 to 0x20CF.

The function checks for accounting and currency characters but does not evaluate their order in relation to currency values for correctness. To test US currency format, use the IsCurrencyFormatted function.

Related Functions

Platform Support

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

Legato IDE, Legato Basic