× 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.



Would the VALUES() keyword be useful?


VALUES (Values) keyword for display files

Use this field-level keyword to specify a list of values that are valid for the user to type into the field.

(Handling negative numbers might be tricky?)



On 4/24/2020 9:47 AM, Filip Drzewiecki via RPG400-L wrote:
Hi,

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.

Thing is I have few fields (different length and decimal places) and I want them to be blank and if user type 0, this field will be set to 0 but if user leave it blank, it will be ignored.

Filip Drzewiecki
RPG Developer

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.