Kbase P13950: How is the special character line feed LF represented in 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/02/2003 |
|
Status: Unverified
GOAL:
How to concatenate two character strings injecting a new line LF special character between them in Progress 4GL?
FIX:
/*** The LF special character may be represented as CHR(10), "~n" or "~012) ***/
DEFINE VARIABLE c1 AS CHARACTER NO-UNDO.
DEFINE VARIABLE c2 AS CHARACTER NO-UNDO.
DEFINE VARIABLE c3 AS CHARACTER NO-UNDO.
/*** c3 has the same value in each of the following: ***/
c3 = c1 + "~n" + c2.
c3 = c1 + CHR(10) + c2.
c3 = c1 + "~012" + c2.