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



     Hello Booth,
    
     Thanks for the pointer.Regarding the function keys , what i was trying
to find out is , if i display a screen with a page of records
     and say the user presses option 4 for deletion in 3 records and then
presses page down with out hitting enter.In that case , i       have to
clear the existing records(Since it is a single Page subfile) and build the
next set of records.Now at this instance , if the 
     user presses page up , then the existing records are again cleared and
the old set up records will be displayed.But , i would have
     lost the option 4 , that the user would have entered in 3 records.

    Any work around/sample for that?

    Thanks and regards
    Chandra Sekhar
      
> ----------------------------------------------------------------------
> 
> message: 1
> date: Sun, 13 Jul 2003 08:44:39 -0500 (Central Daylight Time)
> from: "Booth Martin" <Booth@xxxxxxxxxxxx>
> subject: Re: Single Page Subfile Example
> 
> At the time that code was written there probably was not a Select/EndSl
> Opcode.  I've found the best use of programming time in those design
> situations is to consider changing the code to Select and to change the
> GOTO
> sections to sub routines.  A user can not choose two function keys at the
> same time so there should be no conflicts with logic.
>  
>  
>  
> ---------------------------------------------------------
> Booth Martin   http://www.MartinVT.com
> Booth@xxxxxxxxxxxx
> ---------------------------------------------------------
>  
> -------Original Message-------
>  
> From: RPG programming on the AS400 / iSeries
> Date: Thursday, July 10, 2003 07:30:13
> To: RPG400-L@xxxxxxxxxxxx
> Subject: Single Page Subfile Example
>  
> Hi Group,
>  
> Please let me know if there are any sample codes for wrtitng a typical
> maintainance single page subfile example in RPG IV.I understand that to
> keep
> the options , that user has selected on the screen, arrays have to be used
> for storing.So that when Page down has been pressed, and again page up is
> done i donot lose the options that the users have entered .Any example on
> how this 
> has to be done?
>  
> I have been maintaining some old codes of Load all and Expanding
> maintainance sub files.But they are not very structured in the sense that
> they use a lot of Go to statements to handle various events after
> different
> screens are presented..Is it possible to have a single EXFMT in the code
> and
> also a single set of subroutines for handling 'keys pressed' events
> instead
> of multiple EXFMTs and same set of 'keys pressed ' subroutine copied again
> &
> again?
>  
> Please point me toward good structured RPGIV code samples
>  
>  
> Thanks and regards
> Chandra Sekhar Rath
> 
> 
> 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.