Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

IsCurrencyProper Function

Overview

The IsCurrencyProper function tests if a string contains accounting style characters and if the string is a properly formatted accounting value.

Syntax/Parameters

Syntax

boolean = IsCurrencyProper ( string value );

Parameters

value

A string to test.

Return Value

Returns TRUE if value is a properly formatted currency value or FALSE if it is not.

Remarks

The allowed current characters are dollars ($), pounds (£), yen (¥), and euros (€). The IsCurrencyProper function tests to ensure proper placement of the currency character relative to the numeric value and proper placement of other accounting punctuation (including ‘)’, ‘(‘, ‘-’, ‘,’, and ‘.’) relative to the numeric value. It does not ensure correct placement of commas and decimal points within the number nor does it ensure the correct number of digits. Multiple commas and decimal points are permitted. For less strict testing, use the IsCurrencyFormatted function.

Related Functions

Platform Support

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

Legato IDE, Legato Basic