TechTip: Eliminate Indicators in Display Programs
** This thread discusses the article: TechTip: Eliminate Indicators in Display Programs **
Hi, it was already difficult to handle the following display file. But then I had to add an additional indicator, to handle an other exception.
** This thread discusses the article: TechTip: Eliminate Indicators in Display Programs **
Hi, it was already difficult to handle the following display file. But then I had to add an additional indicator, to handle an other exception.
A R1TNR R B 8 33REFFLD(TNR LLREFDP) A TEXT('Artikel-Nr.') A 12 DSPATR(RI) A N80 60N82 DSPATR(UL) A 80 AON60 AO 82 DSPATR(PR) A 12 DSPATR(PC) A N80 60N82 COLOR(YLW) A 80 AON60 AO 82 COLOR(WHT) A 83 R1LAB R B 19 33REFFLD(LAB LLREFDP) A TEXT('Lagerort') A 20 DSPATR(RI) A N80 60 DSPATR(UL) A 20 DSPATR(PC) A 80 AON83 AON60 DSPATR(PR) A N80 60 83 COLOR(TRQ) A N80 60N83 COLOR(YLW) A 80 AON60 COLOR(WHT) A 83 R1LBE R O 19 38REFFLD(LBE LLREFDP) A TEXT('Bezeichnung Lagerort') A COLOR(WHT)The following snippet not only looks much easier, but its much easier to handle the different situations in the RPG program (where setting paranthesis is allowed).
A A1TNR 1A P TEXT('Display-Attribute für – A Artikel-Nr.') A A1LAB 1A P TEXT('Display-Attribute für Lager') A R1TX11 30 O 6 2TEXT('Artikel-Nr.') A MSGID(FTX 0503 LLMSGF) A R1TNR R B 6 33REFFLD(TNR LLREFDP) A TEXT('Artikel-Nr.') A DSPATR(&A1TNR) A R1TX13 30 O 19 2TEXT('Lagerort') A MSGID(FTX 4668 LLMSGF) A R1LAB R B 19 33REFFLD(LAB LLREFDP) A TEXT('Lagerort') A DSPATR(&A1LAB)Birgitta
Comment