Scott Klement wrote:
>
> On Wed, 31 Oct 2001, Pierre Baudracco wrote:
> >
> > > > If we hit
> > > > 1 0 -, the app shows 1è (strangely it is not 1} but this should be a font
> > > > or map problem) but when we hit Enter (either keyboard or keypad)
> > > > the value -1,000 appears in the numerical field.
> > > >
> > > > 1 0 0 - gives 10è, the Enter gives -10,000.
> > > >
> > >
> > > This appears to be the same issue.  In both cases, it's adding two zeroes.
> >
> > No. -10,000 is -10 (or -10.000 as in France "," is used as the decimal
> > separator, not the thousand separator)
> >
>
> This gave me the clue!  If it's showing a decimal seperator, you must be
> using an edit code -- and that caused my brain to start working. :)
>
> I created a test program that used every type of numeric field I could
> find, and I found that only the 'Y' data type in DDS is allowed to have
> edit codes or edit words applied to it.
>
> When using this data type in an edit code or edit word, I was able to
> reproduce the symptoms that you describe.   (However, it does NOT
> behave that way without the edit word/code!)
>
> After much experimenting & trying different terminals I finally determined
> that the reason for the problem isn't the WAY we're adjusting the field,
> but rather the fact that we're adjusting it at all!
>
> The AS/400 is sending a "NO_ADJUST" flag with that field, yet we were
> still adjusting it.
>
> So...   I committed patches to CVS that makes the emulator respect the
> "NO_ADJUST" flag, and now it appears to match what a genuine IBM terminal
> does with those numeric fields.
>
> Please try it, and let me know if it solves the problem for you.  If it
> does, we'll include it in the next official release of TN5250.

I've just tried it and Yes it works.
It now behaves just as the real IBM 5250.
1 0 - gives -10.000.

Thanks a lot for the reactivity !

--
------------------------------------------------------------------------------
Pierre Baudracco - [EMAIL PROTECTED]
ALIACOM - www.aliacom.fr - 05 62 19 24 91
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: [EMAIL PROTECTED]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250
or email: [EMAIL PROTECTED]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Reply via email to