|
Hi, I have used the DSPATR(PC) for my last SubFile Field, and when I press Enter Key on 1st Row, it works fine and position the cursor to the next field, however if I am on any other Row say on the 2nd row or 3rd row and I press Enter Key, the cursor moves to that field but on the 1st Row, any idea please ? My subfile has 3 fields,. Itemcode ItemName quantity I validate the itemcode on enter key and if its valid, my cursor should go to the quantity field. All validations working fine, just the Position Cursor having problem ? Best Regards, Luqman ] "Lim Hock-Chai" <Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote in message news:ADDB0108F0E23646BCE2C8F029B406E10B9FC0D2@xxxxxxxxxxxxxxxxxxxxxxx > This is what I normally do when need sticky cursor: > CSRLOC(@ROW @COL) > RTNCSRLOC(*WINDOW &@ROW &@COL) > > Note: Remember to set @ROW and @COL to zeros when you need cursor to > goto DSPATR(PC) field. > > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of > Michael_Schutte@xxxxxxxxxxxx > Sent: Thursday, April 06, 2006 7:31 AM > To: RPG programming on the AS400 / iSeries > Subject: Re: How to position cursor on particular row of subfile in code > ? > What I need to do is that whenver the user press Enter Key, the Cursor > should come on the same row, from where it left ? > > > -- > This is the RPG programming on the AS400 / iSeries (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 mailing list archive is Copyright 1997-2025 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.