Correct the Auto-Indentation in PDSOE for ELSE IF blocks

  • Thread starter Thread starter andrew.may
  • Start date Start date
Status
Not open for further replies.
A

andrew.may

Guest
The Auto-Indentation of ELSE IF blocks in PDSOE is screwy - it indents 1 extra level. See KB000050989 e.g. The following code: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 DEFINE VARIABLE l AS LOGICAL NO-UNDO . DEFINE VARIABLE l2 AS LOGICAL NO-UNDO . DEFINE VARIABLE l3 AS LOGICAL NO-UNDO . IF l THEN DO : RUN test1.p. RUN test2.p. END . ELSE IF l2 THEN DO : RUN test3.p. RUN test4.p. END . ELSE IF l3 THEN RUN test5.p. ELSE RUN test6.p. ... will become ... ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 DEFINE VARIABLE l AS LOGICAL NO-UNDO . DEFINE VARIABLE l2 AS LOGICAL NO-UNDO . DEFINE VARIABLE l3 AS LOGICAL NO-UNDO . IF l THEN DO : RUN test1.p. RUN test2.p. END . ELSE IF l2 THEN DO : RUN test3.p. RUN test4.p. END . ELSE IF l3 THEN RUN test5.p. ELSE RUN test6.p.

Continue reading...
 
Status
Not open for further replies.
Back
Top