Kbase P142969: Numeric format > is replaced by space instead of being suppressed in STRING function
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/03/2010 |
|
Status: Verified
SYMPTOM(s):
Numeric format > is replaced by space instead of being suppressed in STRING function
string function numeric format > is treated same as z
DEFINE VARIABLE i AS INTEGER NO-UNDO.
i = 123.
MESSAGE
quoter(string(i, 'zzzzz9':U)) skip
length(string(i, 'zzzzz9':U)) skip
quoter(string(i, '>>>>>9':U)) skip
length(string(i, '>>>>>9':U)) skip
VIEW-AS ALERT-BOX INFO BUTTONS OK.
FACT(s) (Environment):
Progress 9.1E
OpenEdge 10.x
All Supported Operating Systems
CAUSE:
Bug# OE00182131
FIX:
Workaround:
TRIM the result of the STRING function if leading spaces need to be removed, for example:
MESSAGE
quoter(trim(string(123,'>>>>>9':U))) skip
length(trim(string(123, '>>>>>9':U))) skip
VIEW-AS ALERT-BOX INFO BUTTONS OK.