Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
LOWER Function (DataBasic) (m618703+lower_f.htm)
Lowers system delimiters within a string to the next lower level.
LOWER(string)
string An expression that evaluates to the string to be processed.
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 |
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
RAISE function.