|
On the other hand, I may revisit even that after this conversation, as for most of these fields I do set up the DSPATR(PC) keyword set up, for the error validation routines. There's no way around using indicators for that in the DSPF, oh well.. But I do rename them inside the RPG, and give them each a SETOF(nn 'text description explaining the indicator..') pair.
--Alan .
We do the same thing, except we check for the field name. When F4 is pressed, I do a Select group for each cursor field that can be prompted. The OTHER clause sends an error message, "Prompt not available for this field.". I don't like to use row and column because someone will change the screen around without changing he row and column in the program, and all of a sudden, the prompt doesn't work anymore. Plus I don't have to convert the position from binary. Francis Lapeyre IS Dept. Programmer/Analyst Stewart Enterprises, Inc.E-mail: flapeyre@xxxxxxxx-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Sent: Sunday, July 02, 2006 2:31 PM To: RPG programming on the AS400 / iSeries Subject: Re: Prompting in a Program I also use the cursor row and column to return the cursor to the field prompted. Optionally you could send it to the next field, for which you would have to do a bunch of extra setup. --Alan
As an Amazon Associate we earn from qualifying purchases.
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.