DIR0H ;SFISC/MKO-HELP FOR SCREENS ;10:59 AM 22 Jul 1994
;;22.0;VA FileMan;;Mar 30, 1999
;Per VHA Directive 10-93-142, this routine should not be modified.
S DIR0DX=DX,DIR0DY=DY
W $P(DDGLVID,DDGLDEL,10)_$P(DDGLCLR,DDGLDEL,2)_$P(DDGLVID,DDGLDEL)
D HLP^DDGLIBH(9231,9233,"DDSH",IOSL-1)
;
I $D(DDS)#2 D
. D R^DDS3
. I $D(DDO)#2 D
.. I 'DDO D CMD
.. E D
... K DDSH
... S DX=0,DY=IOSL-1 X DDXY W "COMMAND:"
... S DX=IOM-35 X IOXY W $P(DDGLVID,DDGLDEL,10)_"Press <PF1>H for help"
E W $P(DDGLCLR,DDGLDEL,2)
;
S DX=IOM-8,DY=IOSL-1 X IOXY
W $P(DDGLVID,DDGLDEL,10)_$S('$D(DDGLVAN):$P(DDGLVID,DDGLDEL,6),1:"")_$S($G(DIR0("REP")):"Replace",1:"Insert ")_$P(DDGLVID,DDGLDEL,10)
;
S DY=$P(DIR0,U,4),DX=$P(DIR0,U,5)
I $D(DIR("A"))=11 D
. S DIR0X=""
. F S DIR0X=$O(DIR("A",DIR0X)) Q:DIR0X="" D
.. X IOXY
.. W DIR("A",DIR0X)
.. S DY=DY+1
;
I $D(DIR("A"))#2 D
. X IOXY W DIR("A")
. I $D(DDS),DDO,DY=IOSL-1 W $P(DDGLCLR,DDGLDEL)
;
S DIR0X=$E(DIR0A,DIR0C-DIR0DX+DIR0S,DIR0C+DIR0F-DIR0DX-1)
S DX=DIR0S,DY=DIR0DY X IOXY W $S('$D(DDGLVAN):$P(DDGLVID,DDGLDEL,6),1:"")_DIR0X,$E(DIR0SP,$L(DIR0X)+1,999)
S DX=DIR0DX X IOXY
K DIR0DX,DIR0DY,DIR0X
Q
CMD ;
K DDH,DDQ
F DDH=1:1 Q:$D(DIR("?",DDH))[0 S DDH(DDH,"T")=DIR("?",DDH)
S:$D(DIR("?"))#2 DDH(DDH,"T")=DIR("?")
D LIST^DDSU
Q
DIR0H ;SFISC/MKO-HELP FOR SCREENS ;10:59 AM 22 Jul 1994
+1 ;;22.0;VA FileMan;;Mar 30, 1999
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 SET DIR0DX=DX
SET DIR0DY=DY
+4 WRITE $PIECE(DDGLVID,DDGLDEL,10)_$PIECE(DDGLCLR,DDGLDEL,2)_$PIECE(DDGLVID,DDGLDEL)
+5 DO HLP^DDGLIBH(9231,9233,"DDSH",IOSL-1)
+6 ;
+7 IF $DATA(DDS)#2
Begin DoDot:1
+8 DO R^DDS3
+9 IF $DATA(DDO)#2
Begin DoDot:2
+10 IF 'DDO
DO CMD
+11 IF '$TEST
Begin DoDot:3
+12 KILL DDSH
+13 SET DX=0
SET DY=IOSL-1
XECUTE DDXY
WRITE "COMMAND:"
+14 SET DX=IOM-35
XECUTE IOXY
WRITE $PIECE(DDGLVID,DDGLDEL,10)_"Press <PF1>H for help"
End DoDot:3
End DoDot:2
End DoDot:1
+15 IF '$TEST
WRITE $PIECE(DDGLCLR,DDGLDEL,2)
+16 ;
+17 SET DX=IOM-8
SET DY=IOSL-1
XECUTE IOXY
+18 WRITE $PIECE(DDGLVID,DDGLDEL,10)_$SELECT('$DATA(DDGLVAN):$PIECE(DDGLVID,DDGLDEL,6),1:"")_$SELECT($GET(DIR0("REP")):"Replace",1:"Insert ")_$PIECE(DDGLVID,DDGLDEL,10)
+19 ;
+20 SET DY=$PIECE(DIR0,U,4)
SET DX=$PIECE(DIR0,U,5)
+21 IF $DATA(DIR("A"))=11
Begin DoDot:1
+22 SET DIR0X=""
+23 FOR
SET DIR0X=$ORDER(DIR("A",DIR0X))
IF DIR0X=""
QUIT
Begin DoDot:2
+24 XECUTE IOXY
+25 WRITE DIR("A",DIR0X)
+26 SET DY=DY+1
End DoDot:2
End DoDot:1
+27 ;
+28 IF $DATA(DIR("A"))#2
Begin DoDot:1
+29 XECUTE IOXY
WRITE DIR("A")
+30 IF $DATA(DDS)
IF DDO
IF DY=IOSL-1
WRITE $PIECE(DDGLCLR,DDGLDEL)
End DoDot:1
+31 ;
+32 SET DIR0X=$EXTRACT(DIR0A,DIR0C-DIR0DX+DIR0S,DIR0C+DIR0F-DIR0DX-1)
+33 SET DX=DIR0S
SET DY=DIR0DY
XECUTE IOXY
WRITE $SELECT('$DATA(DDGLVAN):$PIECE(DDGLVID,DDGLDEL,6),1:"")_DIR0X,$EXTRACT(DIR0SP,$LENGTH(DIR0X)+1,999)
+34 SET DX=DIR0DX
XECUTE IOXY
+35 KILL DIR0DX,DIR0DY,DIR0X
+36 QUIT
CMD ;
+1 KILL DDH,DDQ
+2 FOR DDH=1:1
IF $DATA(DIR("?",DDH))[0
QUIT
SET DDH(DDH,"T")=DIR("?",DDH)
+3 IF $DATA(DIR("?"))#2
SET DDH(DDH,"T")=DIR("?")
+4 DO LIST^DDSU
+5 QUIT