IBINI08K ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(357.7) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DD(357.7,.05,3)
;;=How long should the line be?
;;^DD(357.7,.05,21,0)
;;=^^3^3^2930527^
;;^DD(357.7,.05,21,1,0)
;;=
;;^DD(357.7,.05,21,2,0)
;;=The length of the line. For horizontal lines the length is in terms of
;;^DD(357.7,.05,21,3,0)
;;=characters. For vertical lines it is in terms of rows.
;;^DD(357.7,.05,"DT")
;;=2930319
;;^DD(357.7,.06,0)
;;=BLOCK^RP357.1'^IBE(357.1,^0;6^Q
;;^DD(357.7,.06,1,0)
;;=^.1
;;^DD(357.7,.06,1,1,0)
;;=357.7^C
;;^DD(357.7,.06,1,1,1)
;;=S ^IBE(357.7,"C",$E(X,1,30),DA)=""
;;^DD(357.7,.06,1,1,2)
;;=K ^IBE(357.7,"C",$E(X,1,30),DA)
;;^DD(357.7,.06,1,1,"%D",0)
;;=^^2^2^2930319^
;;^DD(357.7,.06,1,1,"%D",1,0)
;;=
;;^DD(357.7,.06,1,1,"%D",2,0)
;;=This cross-reference is used to find all lines belonging to a block.
;;^DD(357.7,.06,1,1,"DT")
;;=2930319
;;^DD(357.7,.06,3)
;;=What block should the line appear in?
;;^DD(357.7,.06,4)
;;=W "DOES THIS WORK",!
;;^DD(357.7,.06,21,0)
;;=^^2^2^2930527^
;;^DD(357.7,.06,21,1,0)
;;=
;;^DD(357.7,.06,21,2,0)
;;=The block the line appears in.
;;^DD(357.7,.06,"DT")
;;=2930319
IBINI08K ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(357.7)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(357.7,.05,3)
+2 ;;=How long should the line be?
+3 ;;^DD(357.7,.05,21,0)
+4 ;;=^^3^3^2930527^
+5 ;;^DD(357.7,.05,21,1,0)
+6 ;;=
+7 ;;^DD(357.7,.05,21,2,0)
+8 ;;=The length of the line. For horizontal lines the length is in terms of
+9 ;;^DD(357.7,.05,21,3,0)
+10 ;;=characters. For vertical lines it is in terms of rows.
+11 ;;^DD(357.7,.05,"DT")
+12 ;;=2930319
+13 ;;^DD(357.7,.06,0)
+14 ;;=BLOCK^RP357.1'^IBE(357.1,^0;6^Q
+15 ;;^DD(357.7,.06,1,0)
+16 ;;=^.1
+17 ;;^DD(357.7,.06,1,1,0)
+18 ;;=357.7^C
+19 ;;^DD(357.7,.06,1,1,1)
+20 ;;=S ^IBE(357.7,"C",$E(X,1,30),DA)=""
+21 ;;^DD(357.7,.06,1,1,2)
+22 ;;=K ^IBE(357.7,"C",$E(X,1,30),DA)
+23 ;;^DD(357.7,.06,1,1,"%D",0)
+24 ;;=^^2^2^2930319^
+25 ;;^DD(357.7,.06,1,1,"%D",1,0)
+26 ;;=
+27 ;;^DD(357.7,.06,1,1,"%D",2,0)
+28 ;;=This cross-reference is used to find all lines belonging to a block.
+29 ;;^DD(357.7,.06,1,1,"DT")
+30 ;;=2930319
+31 ;;^DD(357.7,.06,3)
+32 ;;=What block should the line appear in?
+33 ;;^DD(357.7,.06,4)
+34 ;;=W "DOES THIS WORK",!
+35 ;;^DD(357.7,.06,21,0)
+36 ;;=^^2^2^2930527^
+37 ;;^DD(357.7,.06,21,1,0)
+38 ;;=
+39 ;;^DD(357.7,.06,21,2,0)
+40 ;;=The block the line appears in.
+41 ;;^DD(357.7,.06,"DT")
+42 ;;=2930319