I have just come across something very peculiar on the old green screen interface. I have a field defined like this in the DDS:
This field is a numeric price field which can accept positive or negative values. The problem is when I press the minus key the field is populated with junk. If I then prompt one of the other fields and press enter it magically sorts itself out and displays the correct value.
For example:
If I enter 16.00[-] then it displays 16.0}
If I enter 16[-] then it displays 1O
If I enter 19.55 then it displays 19.5N
I just asked someone here about this and he said it was some funny to do with the way packed fields display. He thought maybe if I change the edit code to display the sign on the left then it might work. I'm not keen on this idea though, the program was written in 1996 so the users must be used to it with the sign on the right.
Can anyone think of a nice way to resolve this? I rarely have to touch the green screen so this isn't really my area.
Thanks
PHP Code:
Display file:
A 4 4'Adjustment amount .'
A #AMT R B 4 24REFFLD(BCKADA BATCHC)
A DSPATR(UL)
A EDTCDE(L)
A CHECK(RB)
A 62 ERRMSG('Amount cannot be Zero' 62)
Physical file:
A BCKADA 11 2 COLHDG('Keyed Adj' 'Amount-NCU')
For example:
If I enter 16.00[-] then it displays 16.0}
If I enter 16[-] then it displays 1O
If I enter 19.55 then it displays 19.5N
I just asked someone here about this and he said it was some funny to do with the way packed fields display. He thought maybe if I change the edit code to display the sign on the left then it might work. I'm not keen on this idea though, the program was written in 1996 so the users must be used to it with the sign on the right.
Can anyone think of a nice way to resolve this? I rarely have to touch the green screen so this isn't really my area.
Thanks
Comment