× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi John,

I'm more than a little behind in my email. Can you declare it as a character
field and use the keyboard shift D (digits only)? You might need CHECK(RB)
or another option to properly align the value, but it should eliminate a lot
of internal code.

Michael Quigley
Computer Services
The Way international
www.TheWay.org

message: 1
date: Fri, 24 Apr 2020 13:01:55 -0400
from: John Yeung <gallium.arsenide@xxxxxxxxx>
subject: Re: Handling zeroes typed by user on DDS screen

I'm trying to figure out if it is possible to have decimal field on dds
screen
which shows nothing(blanks) on it but if user type 0(zero), it will stay
there
after pressing enter. With EDTCDE(4), field is empty because of zero
supression but if I will type 0 there, it will disappear after pressing
enter and I
would like it to stay if user typed it there.
It is not possible to achieve that result with any of Edit Codes or Edit
Words.
Unfortunately, option indicator can't be used on both EDTCDE and EDTWRD.

I wanted to avoid making this field character and later validation char
to
valid decimal format.

Personally, I think having the field defined as character and then doing
the
extra processing in your RPG program is the most obvious and
straightforward method to do what you are asking. I understand that this
is
annoying, but I think this way makes it clear what you are trying to do.

Since you had the idea to put indicators on EDTCDE or EDTWRD (which you
found out isn't allowed), you might try adjusting that idea so that you
have
indicators on entire fields, which happen to be at the same place (exactly
overlapping) on the screen. You can then use different EDTCDE values (or
whatever) on those different fields.

John Y.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.