Set Cursor dynamicly
Posted: Wed Dec 16, 2020 12:15 pm
Hello to all
if there a way to set the Cursor dynamicly by a Field Name ?
For example RPG Code
select;
// Prompt / F4 bei welchem Feld
when currec='SCREEN02' and CURFLD='HDKDNR1' and prompt1 = *on;
dsply 'Prompt Kundennummer1 ' ;
// set cursor into Field HDKDNR1
when currec='SCREEN02' and CURFLD='HDKDNR2' and prompt2 = *on;
dsply 'Prompt Kundennummer2 ' ;
// set cursor into Field HDKDNR2
when currec='SCREEN02' and CURFLD='HDKDNR3' and prompt3 = *on;
dsply 'Prompt Kundennummer3 ' ;
// set cursor into Field HDKDNR3
Endsl;
if there a way to set the Cursor dynamicly by a Field Name ?
For example RPG Code
select;
// Prompt / F4 bei welchem Feld
when currec='SCREEN02' and CURFLD='HDKDNR1' and prompt1 = *on;
dsply 'Prompt Kundennummer1 ' ;
// set cursor into Field HDKDNR1
when currec='SCREEN02' and CURFLD='HDKDNR2' and prompt2 = *on;
dsply 'Prompt Kundennummer2 ' ;
// set cursor into Field HDKDNR2
when currec='SCREEN02' and CURFLD='HDKDNR3' and prompt3 = *on;
dsply 'Prompt Kundennummer3 ' ;
// set cursor into Field HDKDNR3
Endsl;