UNSTRING combinando com a FUNCTION LOWER-CASE
UNSTRING
FUNCTION LOWER-CASE (WS-NOME-COMPLETO) DELIMITED BY SPACE
INTO WS-PRIMEIRO WS-SEGUNDO WS-TERCEIRO
END-UNSTRING
DISPLAY "UNSTRING combinando com a FUNCTION LOWER-CASE"
DISPLAY " "
DISPLAY "Primeiro = " WS-PRIMEIRO.
DISPLAY "Segundo = " WS-SEGUNDO.
DISPLAY "Terceiro = " WS-TERCEIRO.
STOP RUN.
|
|
Resultado dos testes:
UNSTRING Normal
Primeiro = Carlos
Segundo = Alberto
Terceiro = Dornelles
UNSTRING combinando com a FUNCTION UPPER-CASE4>
Primeiro = CARLOS
Segundo = ALBERTO
Terceiro = DORNELLES
UNSTRING combinando com a FUNCTION LOWER-CASE
Primeiro = carlos
Segundo = alberto
Terceiro = dornelles
|
|