Skip to content

Commit

Permalink
Update XINDX8.m
Browse files Browse the repository at this point in the history
Handle (N)o Linenums
  • Loading branch information
whitten authored Aug 18, 2016
1 parent a0a85db commit 21c3bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XINDX8.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
XINDX8 ;ISC/GRK - STRUCTURED INDEX ;01/04/2000 14:29
;;7.3;TOOLKIT;**20,27,61**;Apr 25, 1995
;;7.3;TOOLKIT;**20,27,61,DJW**;Apr 25, 1995
S Q="""",(DDOT,LO)=0,PG=+$G(PG) D HDR
F LC=1:1 Q:'$D(^UTILITY($J,1,RTN,0,LC)) S LIN=^(LC,0),ML=0,IDT=10 D CD
K AGR,EOC,IDT,JJ,LO,ML,OLD,SAV,TY
Q
CD S LAB=$P(LIN," ",1),LIN=$P(LIN," ",2,999),LO=$S(LAB="":LO+1,1:0)
I INP(5)["N" S:OPT("NUM") OPT("NUM")=OPT("NUM")+1 W:OPT("NUM") $J(OPT("NUM"),3)_"| "
W $S('LO:LAB,1:" +"_LO)_" "
I INP(5)["L" S:OPT("NUM") OPT("NUM")=OPT("NUM")+1 W:OPT("NUM") $J(OPT("NUM"),3)_"| "
W $S('LO:LAB,INP(5)'["N":" +"_LO,1:"")_" "
G:LIN'[";" EE S STR=1,L=";",ARG=LIN D LOOP I CH'=";" G EE
W ?10,$E(LIN,I,999),! Q:I<2 S LIN=$E(LIN,1,I-2)
EE I LIN="" Q
Expand Down

0 comments on commit 21c3bd7

Please sign in to comment.