Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

ConvertSoftBreaksToSpaces Function

Overview

The ConvertSoftBreaksToSpaces function converts soft break characters (0x0A) to space characters (0x20/32) within a string.

Syntax/Parameters

Syntax

string = ConvertSoftBreaksToSpaces ( string data );

Parameters

data

A string to convert.

Return Value

Returns a string with all soft break characters converted to spaces or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The ConvertSoftBreaksToSpaces function is useful when dealing with systems or software that use the soft break character to mark where lines are soft broken for justification. The return string has a maximum size of 2MB. If the buffer is exceeded, the GetLastError function will return ERROR_OVERFLOW.

Related Functions

Platform Support

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

Legato IDE, Legato Basic

Page revised 2024-04-22