Project

General

Profile

Bug #10453

FILL-IN of Integer Type: Incorrect Input Digit Handling in Fractional Part (GUI Mode)

Added by Vladimir Tsichevski 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
16119
version_resolved:
reviewer:
production:
No
env_name:
topics:

History

#1 Updated by Vladimir Tsichevski 11 months ago

Consider the following 4GL example

SESSION:NUMERIC-FORMAT = "American".
DEFINE VARIABLE v AS INTEGER FORMAT "9.99".
DEFINE FRAME f v.
ENABLE ALL WITH FRAME f.
v:SCREEN-VALUE = "1.5".
WAIT-FOR CLOSE OF FRAME f.

OE Behavior

GUI Mode

Run this 4GL example in OE under GUI mode.

A FILL-IN for an integer type is displayed with the screen value 2.00.

  1. Move the caret to the leftmost fractional digit and enter any digit from 1 to 4.
  2. The digit under the caret remains unchanged, and the caret shifts to the right.
  3. Move the caret to the leftmost fractional digit and enter any digit from 5 to 9.
  4. The digit under the caret remains unchanged, the caret shifts to the right, and the integer value increases by one.
  5. Move the caret to any other fractional digit and enter any digit.
  6. The digit under the caret remains unchanged, and the caret shifts to the right.

In GUI mode, the screen value updates based on user input according to the format, then the value is parsed to an integer with proper rounding of the fractional part. The result is reformatted for display, ensuring all fractional digits are always zero.

CHARACTER Mode

Run the same 4GL example in OE under CHARACTER mode.

A FILL-IN for an integer type is displayed with the screen value 2.00, identical to GUI mode.

  1. Move the caret to any fractional digit and enter any digit.
  2. The digit under the caret is replaced with the input digit, and the caret shifts to the right.

In CHARACTER mode, the initial screen value is rounded to an integer (as in GUI mode) when set, but rounding to an integer does not occur immediately upon user input.

FWD Behavior

GUI Mode

In GUI mode, FWD behavior mirrors OE's CHARACTER mode behavior, which is incorrect.

ChUI Mode

In ChUI mode, FWD behavior aligns with OE's behavior.

Also available in: Atom PDF