Hi,
I was talking about RTNCSRLOC(*WINDOW &LIGCUR &COLCUR)
-----Message d'origine-----
De : RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> De la part de myibmi via RPG400-L
Envoyé : jeudi 2 novembre 2023 09:26
À : 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc : myibmi <myibmi@xxxxxxxxxxx>
Objet : AW: 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.
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.
--
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/rpg400-l__;!!J76aczzK!x2od6_ObUZAgEA1P7nd_xyLQeEveVZc-rzLHm3T2r1ADkOCpdNVc841CwVK75Zw35fIy8wnAPGI83d4eaP796KcnQ3KUZA$
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__;!!J76aczzK!x2od6_ObUZAgEA1P7nd_xyLQeEveVZc-rzLHm3T2r1ADkOCpdNVc841CwVK75Zw35fIy8wnAPGI83d4eaP796Kell6UyzQ$ .
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
--
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/rpg400-l__;!!J76aczzK!x2od6_ObUZAgEA1P7nd_xyLQeEveVZc-rzLHm3T2r1ADkOCpdNVc841CwVK75Zw35fIy8wnAPGI83d4eaP796KcnQ3KUZA$
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__;!!J76aczzK!x2od6_ObUZAgEA1P7nd_xyLQeEveVZc-rzLHm3T2r1ADkOCpdNVc841CwVK75Zw35fIy8wnAPGI83d4eaP796Kell6UyzQ$ .
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.