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



Hi,

You just set XLIN## to the line on which Filed BB is placed and then change
the value of XPOS## to the position of the first character of BB


If you generally want to position on BB even though it is not the first
entry field then just use the field attribute PC to position the cursor
(DSPATR(PC))

Mit freundlichen Grüßen / Kind regards / Bien à vous,

Seán Courtney


-----Original Message-----
From: gio.cot <gio.cot@xxxxxxxxxxx>
Sent: Tuesday, 29 August 2023 12:52
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: 'Sean Courtney' <scourtney@xxxxxxxxxxx>
Subject: R: Position cursor on a field without using indicator

Hi Sean
This for reposition in the same field, but what about, if i'm positioned in
field AA but i want to position my cursor in the field BB Thanks

-----Messaggio originale-----
Da: Sean Courtney [mailto:scourtney@xxxxxxxxxxx]
Inviato: martedì 29 agosto 2023 10:35
A: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: 'gio.cot' <gio.cot@xxxxxxxxxxx>
Oggetto: RE: Position cursor on a field without using indicator

Hi,

RTNCSRLOC(&CSRC## &CSFL##) : to retrieve the current cursor location

XLIN## 3S 0H
XPOS## 3S 0H
CSRLOC(XLIN## XPOS##) : you can use these to reposition a
cursor manually

Mit freundlichen Grüßen / Kind regards / Bien à vous,

Seán Courtney ?



-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of gio.cot
via RPG400-L
Sent: Tuesday, 29 August 2023 10:23
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Cc: gio.cot <gio.cot@xxxxxxxxxxx>
Subject: Position cursor on a field without using indicator

Hi all

I have an old (very old program) where i have used all the indicators and i
would need , for some errors, position the cursors in a specific field;
question: is there other way to position the cursor, without using an
indicator ?

Thanks in advance

--
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://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.





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.