Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

IsASCII Function

Overview

The IsASCII function tests if a string is compliant for ASCII characters including white space characters.

Syntax/Parameters

Syntax

boolean = IsASCII ( string value );

Parameters

value

A string to test.

Return Value

Returns TRUE if value contains only ASCII text or white space characters or FALSE if it does not. Tabs, returns, and newlines count as white space.

Remarks

ASCII characters are effectively 7-bit characters (0-126). This function checks for printable characters, including white space, tab, newline and return.

The delete character (127 or 0x7F) is not allowed since its interpretation by many systems is not consistent or sometimes even allowed.

Note that backspace (0x08) is also included as a valid character since it is used as a tab fill within the application.

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

Related Functions

Platform Support

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

Legato IDE, Legato Basic