Kbase P114839: Incorrect format applied to a character field
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/04/2006 |
|
Status: Unverified
SYMPTOM(s):
Incorrect format applied to a character field
Format contain characters and user is typing the same character
The following code demonstrate the problem:
DEF VAR char-1 AS CHAR FORMAT "X&XXX&XX&X".
UPDATE char-1.
typing the value &&&&&&& (seven ampersands) and pressing enter, the expected would be to have the value displayed as &&&&&&&&&& (10 ampersand), but it displays &&&&&&& & (7 ampersands, a space and an ampersand) instead.
CAUSE:
This is expected behavior.
FIX:
In this code, the ampersand is a "fill" character - that is, it is not a character where data will go. If the cursor is on a fill character (or on GUI, to the immediate left of a fill character) and the user type that same character, the cursor is advanced to the next character. If the cursor is on a fill character and you type a different character Progress finds the next non-fill character position and insert the character there.