Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

ChangeCase Function

Overview

The ChangeCase function alters the case of a string based on a number of modes.

Syntax/Parameters

Syntax

string = ChangeCase ( string data, [dword flags] );

Parameters

data

A string to convert.

flags

An optional dword that specifies the mode. The default mode is CASE_CHANGE_TITLE. The following the are possible flags:

  Term   Bits   Description  
  Mode:          
    CASE_CHANGE_MODE_MASK   0x0000000F   Mask for case mode  
    CASE_CHANGE_LOWER   0x00000002   Lower  
    CASE_CHANGE_UPPER   0x00000003   Upper  
    CASE_CHANGE_SENTENCE   0x00000004   Sentence  
    CASE_CHANGE_INITIAL   0x00000005   Initial  
    CASE_CHANGE_TITLE   0x00000006   Title  
  Flags (bitwise):          
    CASE_CHANGE_SGML   0x10000000   Treat as SGML/HTML  

Return Value

Returns a string that contains the altered version of data.

Remarks

This difference from the MakeLowerCase or MakeUpperCase functions in that other modes are supported. The flags can be one of the mode values and an option flag OR’ed in with the flags.

Related Functions

Platform Support

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

Legato IDE, Legato Basic

Page revised 2024-04-22