RAISE Function

Raises system delimiters within a string to the next higher level.

Syntax

RAISE(string)

Syntax Elements

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

Operation

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

Delimiter

ASCII Equivalent

Raised To

ASCII Equivalent

Segment/item mark.

255

Remains unchanged

255

Attribute mark

254

Remains unchanged

254

Value mark

253

Attribute mark

254

Subvalue mark

252

Value mark

253

Start of buffer/text mark

251

Subvalue mark

252

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 = RAISE(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 RAISE 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 255 66 254 67 254 68 253 69 252 70

See Also

LOWER function.