Solved

Triggering Page Up or Page Down?

Posted on 2002-07-09
5
426 Views
Last Modified: 2010-08-05
Is it possible to trigger Page Up or Page Down in an RPG-program?  It's a program that uses subfiles.  Now the program goes to the end instead of waiting and displaying the first 20 records.   So now I want to manipulate the program to go back.  Can someone prevent me with some help and code?

Thnx!
0
Comment
Question by:Pingolin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 7141912
So what you say is that the subfile is displaying the last (20) records instead of the first 20...

If that is the only problem, you ave to do the folowing:

While writing the subfile you are using a field with the subfile record number!. After the writing of the subfile is complete, reset this number to 1. and the first 20 records are displayed.

I hope that tis is what you want.. If not please explain your question more detailed.

Regards and good luck.

0
 

Author Comment

by:Pingolin
ID: 7142882
I'm sorry, but that didn't work out.  I already solved it myself by an other way without triggering.  Triggering was not a good solution because I got stuck by using different subroutines.

Next time better I hope.
0
 
LVL 3

Expert Comment

by:P_S_Price
ID: 7149036
Thats Naught cause Murphey did give you the answer (SFLRCDNBR)
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 100 total points
ID: 7150797
Hi Pingolin,

of cause you got stucked in this way only the setting the recordnumber back to 1 is the only way to solve this.

Regards,
0
 
LVL 33

Expert Comment

by:shalomc
ID: 8966494
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Murphey2's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

ShalomC
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Driver Where can I find IBMDA400 driver software 5 3,335
c# call as400 program with integer parameters 5 624
Check file/object size on AS400 3 209
iSeries (AS400) Spool file issue 17 140
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
Configuring Remote Assistance for use with SCCM
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question