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



Hey, I don't get it.

Surely the same screen will be shown with the to field equal to the from field ? I mean, you have to hit the enter key, not the tab key to show the from field.

-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Peter_Vidal@xxxxxxxx
Envoyé : vendredi 16 janvier 2009 20:22
À : RPG programming on the IBM i / System i
Objet : Re: Use of the TAB key to auto-load a field

That worked Joe!

Thanks!

PETER VIDAL
MAPICS IT TECHNICAL SUPPORT TEAM / SR SYSTEM ANALYST 10540 Ridge Rd., Suite 203, New Port Richey, FL 34654-5111 Tel:727-849-9999, x2414 Fax:727-815-3120 WWW.PALL.COM

"Be civil to all; sociable to many; familiar with few; friend to one; enemy to none."
Benjamin Franklin




Joe.Maguire@xxxxxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/16/2009 01:47 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx> cc

Subject
Re: Use of the TAB key to auto-load a field






Peter_Vidal@xxxxxxxx wrote on 16/01/2009 18:04:45:

Good afternoon list!

I need to enter a list of items in a file. The file has 2 fields: the
FROM field, which will have the item I will type in and the TO field,
which will be whatever value I want. Here is where the challenge comes:

I
need to be able to program the TAB key in a way that when I press the
TAB
key after finishing typing the value in the FROM field, to go to the
TO field and load in it the value I previously typed in the FROM
field. I will have the option to leave it like that or change it if I want.

For example, if I have a FROM field value of "ABC123", when I finished
entering the data and I press the TAB key, I wan the cursor to move to
the
next field (the TO Field) and I want the value in FROM field to be the
new
value in the TO field.

Is this possible? Any examples? Thanks in advance!

I'm not aware of any way to do this solely with DDS, but what about something like:

A FROM 6 0B 5 11
A CHANGE(01)
A TO 6 0B 5 21
A 02 DSPATR(PC)

combined with:

DoU *In01 = *Off
ExFmt Screen;
If *In01;
To = From;
*In02 = *On;
EndIf;
EndIf;

Kind Regards,

Joe Maguire.
--
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.



--------------------------------------------------------------------------------

Attention:

This communication may contain information that is confidential, privileged and/or exempt from disclosure under applicable law.
If you are not the intended recipient, please notify the sender immediately and delete the original, all attachments, and all copies of this communication.


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