source: WorldVistAEHR/trunk/r/HINQ-DVB--DVBA--DVBE--DVBC/DVBHQEDT.m@ 632

Last change on this file since 632 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 3.4 KB
RevLine 
[613]1DVBHQEDT ;ALB/JLU -THIS ROUTINE CHECKS THE ONE MANY ALL INPUT FOR HINQ SCREENS. ;3/19/90
2 ;;4.0;HINQ;**6,49**;03/25/92
3A ;ENTRY POINT FROM TEMPLATE DVBHINQEDT
4 S ERROR=0,Z="" K Z2,Z3
5 I "Aa"[ANS D L3 Q
6 I ANS'?.NP S ERROR=1 D ERR Q
7 I +ANS>$E(DVBJS,2) S ERROR=1 D ERR Q
8 I (ANS?1N)!(ANS?1N1",") S Z=$P(ANS,",")_"^" D EX Q
9 I ANS?1N1"-"1N D L0,EX:'ERROR,ERR:ERROR Q
10 F Z0=1:2:$L(ANS) S Z1=$E(ANS,Z0,Z0),Z2=$E(ANS,Z0+1,Z0+1) D L1 Q:ERROR!(Z2="")
11 I 'ERROR F Z4=0:0 S Z4=$O(Z3(Z4)) Q:'Z4 S Z=Z_Z4_"^"
12 I ANS=0 F Z1=1:1:$E(DVBJS,2) S Z=Z_Z1_"^" W Z
13 D ERR:ERROR Q
14EX I $E(Z,$L(Z)-1,$L(Z)-1)>$E(DVBJS,2) W !,"Number too large for selectable numbers." S ERROR=1 D ERR Q
15 Q
16ERR W !!,*7,?9,"Check boundaries and/or syntax and try again.",!,?9,"Use '?' if still having problems OK!! <RET>" R DVBZ:DTIME K DVBZ Q
17 ;
18L0 I $P(ANS,"-",2)>$P(ANS,"-") F Z1=$P(ANS,"-"):1:$P(ANS,"-",2) S Z=Z_Z1_"^"
19 E S ERROR=1 Q
20 D ERR:ERROR K Z1 Q
21L1 I Z1'?1N,Z0=1 S ERROR=1 Q
22 I (Z1?1N),((Z2=",")!(Z2="")) S Z3(Z1)="" Q
23 I Z1?1N,Z2="-" D L2 Q
24 Q
25L2 I Z1>$E(ANS,Z0+2,Z0+2) S ERROR=1 Q
26 I $E(ANS,Z0+3,Z0+3)'=",",($E(ANS,Z0+3,Z0+3)'="") S ERROR=1 Q
27 F Z4=Z1:1:$E(ANS,Z0+2,Z0+2) S Z3(Z4)=""
28 S Z0=Z0+2
29 Q
30L3 F Z1=1:1:$E(DVBJS,2) S Z=Z_Z1_"^"
31 Q
32 ;
33B ;THIS IS THE ENTRY POINT FOR THE HELP SCREEN IN THE HINQ UPLOAD.
34 W @$S('$D(IOF):"#",IOF="":"#",1:IOF)
35 W !,?25,DVBON,"HINQ Help Screen",DVBOFF
36 W !!,?5,DVBON,"<RET>",DVBOFF," press return to continue on to the next display screen.",!!,?6,DVBON,"'^'",DVBOFF," use the up arrow to get out of the upload mode."
37 W !!,?14,"To upload you have a choice of ONE, MANY, or ALL."
38 W !!,?27,DVBON,"N",DVBOFF," for a single selection.",!,?27,DVBON,"N,N,N",DVBOFF," for specific fields.",!,?27,DVBON,"N-N",DVBOFF," for a range of fields."
39 W !,?27,DVBON,"A",DVBOFF," for the entire screen."
40 W !!,?8,"Except for the first screen which is the verification screen,"
41 W !,?8,"highlighted numbers in ",DVBON,"[]",DVBOFF," can be uploaded where as highlighted"
42 W !,?8,"numbers in ",DVBON,"<>",DVBOFF," can not."
43 W !!,?8,"Screen jumping is also allowed to some extent. You are able"
44 W !,?8,"to jump from any one of the three screens except from 3 to any"
45 W !,?8,"of the others. 1->2 1->3 2->1 2->3 but not 3->N"
46 W !,?8,"The correct format is ^N (Ex. to go from 2 to 1 ^1)"
47 W !!,?20,"<Press return to continue.>"
48 Q
49KA1 K JU,J,JZ,K1,K2,L,L1,X,XX,Y,Z,DFN,DGEDCN,DI,DVBJ2,DVBOFF,DVBON,DVBOUT,I,D0,DVBJA,DVB8,DVB9,ERROR,Y1,DVBY,DVBJ1,ZTSK,DVBLIT,DVBENT,DVBLP,DVBMM,DVBUQ,DVBLIT1,DVBLIT2,DVBS,DVBBLF,DVBBLO,DVBDIQ,DVBX,DVBSCRN
50 K DVBI,D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