Kbase P7423: Backspace in decimal field not deleting characters properly
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/12/2005 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.1x
SYMPTOM(s):
Backspace in decimal field not deleting characters properly
Number format with trailing characters after the number such as -ZZ.99abc, (ZZ,ZZZ.99) or >>.>99,99-
Negative sign is removed from number, making the number positive
The last digit changes to zero
Occurs if the cursor is positioned after the decimals separator
No other digits can be deleted by continuing to press the backspace key
CAUSE:
Bug# 20020624-036
FIX:
Upgrade to 9.1E or later
If the upgrade is not possible, move to a different position in the field and continue to delete. This can be done programmatically using a generic trigger, for example:
on 'backspace' anywhere do:
if self:data-type = "decimal" and self:format matches "*-" then do:
if self:cursor-offset = length(self:format) then do:
apply "0" to self.
apply 'cursor-left' to self.
apply 'cursor-left' to self.
return no-apply.
end.
end.
end.