Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

IsANSI Function

Overview

The IsANSI function tests if a string is compliant for ANSI characters including ANSI white space characters and some ANSI control characters.

Syntax/Parameters

Syntax

boolean = IsANSI ( string value );

Parameters

value

A string to test.

Return Value

Returns TRUE if value contains only ANSI text, white space characters, and/or some ANSI control characters (see Remarks), or FALSE if it does not. Tabs, returns, and newlines count as white space.

Remarks

ANSI characters are effectively 8-bit ASCII and extended 128-255 characters. This function does not check for undefined character positions above 32 (0x20 or space). Most control characters will cause the function to return FALSE.

An empty string is technically ANSI compliant. In this case, the IsANSI function will still return TRUE.

This function is useful when dealing with UNICODE strings that may contain non-ANSI information.

Related Functions

Platform Support

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

Legato IDE, Legato Basic