Article

Strange characters displayed in decimal fields

Information

 
Article Number000093494
EnvironmentProduct: OpenEdge
Version: 11.6.4, 11.7.4
OS: Windows
Question/Problem Description
When entering a value in a decimal field, strange characters appear after entering a dot (period).
The decimal field is set to European where it uses a decimal comma.

User-added image
Steps to Reproduce
Clarifying Information
The code which triggers this is the following (in a European session: -E -numsep 46 -numdec 44):
See attached example code TestWin.w.
 
ON "." ANYWHERE 
    DO:
        IF SESSION:NUMERIC-FORMAT EQ "European"
            AND CAN-QUERY(SELF, "DATA-TYPE":U)
            AND SELF:DATA-TYPE EQ "DECIMAL":U
        THEN
            APPLY ",":U TO SELF.
    END.
Error Message
Defect/Enhancement NumberDefect OCTA-10114
Cause
The exact cause is not known at this time.
Resolution
Until the fix is available, use the workaround described below.
Workaround
Run RETURN NO-APPLY after applying the comma:
ON "." ANYWHERE 
    DO:
    /* If session is EU (-E) and a decimal field (-numdec 44)          *
     * then convert the decimal point (full stop '.') to a comma ','   *
     * For all other cases ALLOW full stop '.'                            */
 
        IF SESSION:NUMERIC-FORMAT EQ "European"
            AND CAN-QUERY(SELF, "DATA-TYPE":U)
            AND SELF:DATA-TYPE EQ "DECIMAL":U
        THEN DO:
            APPLY ",":U TO SELF.
            RETURN NO-APPLY.
        END.
    END.

 
Notes
Reference to other documentation:
Article 000084222: Making the period (decimal point) behave as a COMMA on Numeric Key Pad
Attachment
Last Modified Date1/7/2019 2:30 PM


Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025