Kbase P8354: The Windows Paste Functionality (Ctrl-V) and Progress character variables defined with special forma
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/19/2004 |
|
Status: Unverified
FACT(s) (Environment):
Progress 8.x
Progress 9.1A
Progress 9.1B
Progress 9.1C
Progress 9.1D
SYMPTOM(s):
Program defines a character variable with a special format of 99999999.x9999999.
The Windows' paste functionality (Ctrl + V) behaves incorrectly.
If the 'x' is removed from the format, then the problem goes away.
Cannot upgrade to Progress 9.1E or OpenEdge 10.1A.
CAUSE:
Bug# 20040127-034.
FIX:
To get around this issue, assign the value currently placed in the System's clipboard to the character variable defined with the special format whenever a paste (Ctrl-V) event is performed. e.g.:
DEFINE VARIABLE vcTest AS CHARACTER
FORMAT "99999999.x9999999":U INITIAL "11111111z1111111" NO-UNDO.
FORM vcTest WITH FRAME fTest WIDTH 80.
MESSAGE "Press Ctrl + X and then Ctrl + V".
ON 'Ctrl-V':U OF vcTest IN FRAME fTest
ASSIGN vcTest:SCREEN-VALUE = CLIPBOARD:VALUE.
UPDATE vcTest WITH FRAME fTest.