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



No, I was wondering that nobody mentioned that keyword.
But this keyword refers to an input field and if you want to know the exact
independent cursor position of the whole screen you need the DS.
AFAIK

-----Ursprüngliche Nachricht-----
Von: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] Im Auftrag von
Jean-Marc DUVAL via RPG400-L
Gesendet: Donnerstag, 2. November 2023 09:14
An: RPG programming on IBM i
Cc: Jean-Marc DUVAL
Betreff: RE: INFDS()

Hi,

Am I the only one that use RTNCSRLOC keyword to get the cursor location ?

-----Message d'origine-----
De : RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> De la part de
DEnglander--- via RPG400-L
Envoyé : mercredi 1 novembre 2023 14:52
À : rpg400-l@xxxxxxxxxxxxxxxxxx
Cc : DEnglander@xxxxxxxxxxxxxxx
Objet : INFDS()



ATTENTION : Ce message provient d'une source EXTERNE. Veuillez n'ouvrir les
liens ou pièces jointes que si vous êtes sûr de l'expéditeur.



I have an RPG program that has a WORKSTN file defined with keyword
INFDS(DSPDS)

Here is that DS:

ddspds dS
dcursorloc 370 371b 0

Here is one example of where CURSORLOC is referenced:

c when CsrLoc = 'S1NUMBER' or
c cursorloc > 1282 and cursorloc < 1290

Is this code saying "If the cursor is on field S1NUMBER or it is on row 12,
positions 83 through 89 then....

If not, what does the number range of CURSORLOC represent? I can't seem to
find anywhere online where this field is defined as a numeric range.
Normally it shows as position 370 is the Hex of the cursor row location and
371 is the Hex value of the cursor column location.

Any idea what is range represents? There other ranges within this SELECT
block, but CURSORLOC is only referenced in this SELECT block.


Douglas Englander
Senior Programmer/Analyst
The C. D. Hartnett Company ? Corporate Offices
1-817-594-3813 ext. 1636

"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments
accompanying it) contain confidential information belonging to the sender.
The information is intended only for the use of the intended recipient. If
you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance on
the contents of the information is strictly prohibited. Any unauthorized
interception of this transmission is illegal under the law. If you have
received this transmission in error, please promptly notify the sender by
reply e-mail, and then destroy all copies of the transmission."
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/rpg4
00-l__;!!J76aczzK!xlPuxWQhqBmcyMpfnWWfBi2MgU8l4AilqUA4PEyoNO9fb1VMmGVB33yRvu
R5CJ73zTjOQD66Q7fYc2p0juzLyeQHd-mjdg$
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!J76acz
zK!xlPuxWQhqBmcyMpfnWWfBi2MgU8l4AilqUA4PEyoNO9fb1VMmGVB33yRvuR5CJ73zTjOQD66Q
7fYc2p0juzLyeTmfJ4jSA$ .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.


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.