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



I am thinking it might be one of two issues. I am guessing the problem lies in the RPG, not in the DDS.

Are you updating the promptable field with the value you selected in the window?

Are you doing a new EXFMT to the main screen, after the value is selected?

(here is a program where I do what you are looking to do, I believe. I make the prompt program as a separate program so that it can be used in any application where the promptable field is needed.)


http://www.martinvt.com/Code_Samples/Dropdown_Box/dropdown_box.html


I am also suspicious of the last two parameters. I have always used Restore display = *YES and I leave Defer write at the default.



On 5/20/2011 12:34 PM, daparnin@xxxxxxxxxxxxxx wrote:
I'm having a Friday afternoon senior moment. I'm thinking that I'm
missing a DDS keyword or something. I've got a promptable field in a
display file. I can press F4, the prompt window displays, and I select
the value. When I debug the RPG/Free code it shows that the variable has
the selected value. The problem is that when the program loops back to
the EXFMT statement the new value isn't in the field. Instead, it has the
default of zero. If I hit ENTER or a function key the zero is put into
the variable. Other than that, the screen looks just fine following the
prompt. I have the additional parameters set as:

Enhanced display . . . . . . . . *YES
Restore display . . . . . . . . *NO
Defer write . . . . . . . . . . *YES


Thoughts? We are at V5R4.


Dave Parnin


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.