LOWER Function

Lowers system delimiters within a string to the next lower level.

Syntax

LOWER(string)

Syntax Elements

string An expression that evaluates to the string to be processed.

Operation

The LOWER function converts system delimiters in a string to the next lower level as shown in the following table:

Delimiter

ASCII Equivalent

Lowered To

ASCII Equivalent

Segment/item mark.

255

Attribute mark

254

Attribute mark

254

Value mark

253

Value mark

253

Subvalue mark

252

Subvalue mark

252

Start of buffer/text mark

251

Start of buffer/text mark

251

Remains unchanged

251

Example

STR = "A":@IM:"B":@AM:"CýDüE":@TM:"F"
FOR I = 1 TO LEN(STR)
   PRINT SEQ(STR[I,1]):" ":
NEXT I
PRINT
SL = LOWER(STR)
FOR I = 1 TO LEN(SL)
   PRINT SEQ(SL[I,1]):" ":
NEXT I
PRINT

This example defines a string containing each of the system delimiters and prints the decimal equivalent of each character. It then applies the LOWER function to the string and prints the result in the same way. The output is as follows:

65 255 66 254 67 253 68 252 69 251 70
65 254 66 253 67 252 68 251 69 251 70

See Also

RAISE function.