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



Not sure what would happen ... but the DSPF doesn't have INDARA specified,
right?

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Computers can figure out all kinds of problems, except the things in the
world that just don't add up.


Hi all,

I've already done this before, and I've just copied from a working
program, but it's not working and I can't see what I'm doing
differently. Apart from the fact that my program uses the MAIN keyword.


FMYDSPF CF E WORKSTN INDDS ( gIndDS )

* Indicateurs.
D gIndDS DS
D gFunctionKeys 1 24
D gF3 3 3N
D gF4 4 4N
D gF12 12 12N
D gF23 23 23N

* . Positionnement du curseur DSPATR(PC).
D gDSPATR_PC 31 40
D gPC_FIELD1 31 31N
D gPC_FIELD2 32 32N
D gPC_FIELD3 33 33N

In the program, I can use my named function keys ok, but I want to set
the cursor on a particular field. The cursor is always set on FIELD1,
even when gPC_FIELD1 is off and gPC_FIELD2 or gPC_FIELD3 is on.

A FIELD1 R B 14 34REFFLD(...
A 31 DSPATR(PC)
A FIELD2 R B 15 34REFFLD(...
A 32 DSPATR(PC)
A FIELD3 R B 16 34REFFLD(...
A 33 DSPATR(PC)

Anyone see what's occurring?
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.