1 | DDGFADL ;SFISC/MKO-ADJUST DATA LENGTH ;11:28 AM 22 Dec 1993
|
---|
2 | ;;22.0;VA FileMan;;Mar 30, 1999
|
---|
3 | ;Per VHA Directive 10-93-142, this routine should not be modified.
|
---|
4 | N DDGFE
|
---|
5 | D DRAW(1)
|
---|
6 | S DDGFE=0 F S Y=$$READ W:$T(@Y)="" $C(7) D:$T(@Y)]"" @Y Q:DDGFE
|
---|
7 | Q
|
---|
8 | ;
|
---|
9 | CHR Q:L'<($P(DDGFLIM,U,4)-D2+1)
|
---|
10 | S L=L+1,D=D_"_"
|
---|
11 | D DRAW(1)
|
---|
12 | Q
|
---|
13 | CHL Q:L<2
|
---|
14 | S L=L-1,D=$E(D,1,$L(D)-1)
|
---|
15 | D DRAW(-1)
|
---|
16 | Q
|
---|
17 | DONE ;
|
---|
18 | S DDGFE=1,D3=D2+L-1,DDGFDY=DY,DDGFDX=DX
|
---|
19 | S DY=IOSL-6,DX=IOM-9
|
---|
20 | X IOXY W $J("",7)
|
---|
21 | S DY=DDGFDY,DX=DDGFDX X IOXY
|
---|
22 | K DDGFDY,DDGFDX
|
---|
23 | Q
|
---|
24 | DRAW(I) ;Draw line
|
---|
25 | ;I = 1 if we've increased the data length, -1 if we've decreased it
|
---|
26 | ;
|
---|
27 | N S,X,Y
|
---|
28 | S X=DX,Y=DY
|
---|
29 | S DY=D1,DX=D2 X IOXY
|
---|
30 | W $P(DDGLVID,DDGLDEL,6)_D_$P(DDGLVID,DDGLDEL,10)_$E(" ",1,I=-1)
|
---|
31 | S DY=IOSL-6,DX=IOM-9,S="L="_L X IOXY W S_$J("",7-$L(S))
|
---|
32 | I I=-1 D REPAINT^DDGLIBW(DDGFWID,D1_U_(D2+L)_U_1_U_1)
|
---|
33 | ;
|
---|
34 | S DX=X,DY=Y X IOXY
|
---|
35 | Q
|
---|
36 | ;
|
---|
37 | READ() N S,Y
|
---|
38 | F R *Y:DTIME D C Q:Y'=-1
|
---|
39 | Q Y
|
---|
40 | ;
|
---|
41 | C I Y<0 S Y="TO" Q
|
---|
42 | S S=""
|
---|
43 | C1 S S=S_$C(Y)
|
---|
44 | I DDGF("DIN")'[(U_S) D I Y=-1 W $C(7) Q
|
---|
45 | . I $C(Y)'?1L S Y=-1 Q
|
---|
46 | . S S=$E(S,1,$L(S)-1)_$C(Y-32) S:DDGF("DIN")'[(U_S_U) Y=-1
|
---|
47 | ;
|
---|
48 | I DDGF("DIN")[(U_S_U),S'=$C(27) S Y=$P(DDGF("DOUT"),U,$L($P(DDGF("DIN"),U_S_U),U)) Q
|
---|
49 | R *Y:5 G:Y'=-1 C1 W $C(7)
|
---|
50 | Q
|
---|