source: IHS-VA_UTILITIES-XB/trunk/XBFLD2.m@ 901

Last change on this file since 901 was 642, checked in by Sam Habiel, 15 years ago

Modified directory structure; moved routines.

File size: 1.4 KB
Line 
1XBFLD2 ; IHS/ADC/GTH - INITIALIZATION FOR ^XBFLD ; [ 02/07/97 3:02 PM ]
2 ;;4.0;XB;;Jul 20, 2009;Build 2
3 ;
4 ; Part of XBFLD
5 ;
6 ; ^UTILITY("XBDSET",$J, is used to store the list of files
7 ; to be listed so that other software can pass files to be
8 ; listed to the external entry point EN^XBFLD, and the other
9 ; software could select files by using ^XBDSET.
10 ;
11INIT ; INITIALIZATION
12 NEW XBFILE
13 D ^XBKVAR
14 KILL ^UTILITY($J),^UTILITY("XBDSET",$J)
15 S XBQFLG=0
16 D ^XBDSET
17 S:'$D(^UTILITY("XBDSET",$J)) XBQFLG=1
18 Q:XBQFLG
19 D FORMAT^XBFLD
20 D DEVICE ; Get device
21 Q
22 ;
23DEVICE ; GET DEVICE (QUEUEING ALLOWED)
24XBLM ;
25 S Y=$$DIR^XBDIR("S^P:PRINT Output;B:BROWSE Output on Screen","Do you wish to ","P","","","",1)
26 KILL DA
27 Q:$D(DIRUT)
28 I Y="B" S XBFLD("BROWSE")=1 D VIEWR^XBLM("EN^XBFLD"),FULL^VALM1 W:$D(IOF) @IOF D Q
29 . D CLEAR^VALM1 ;clears out all list man stuff
30 . KILL XQORNEST,VALMKEY,VALM,VALMAR,VALMBCK,VALMBG,VALMCAP,VALMCNT,VALMOFF,VALMCON,VALMDN,VALMEVL,VALMIOXY,VALMKEY,VALMLFT,VALMLST,VALMMENU,VALMSGR,VALMUP,VALMWD,VALMY,XQORS,XQORSPEW,VALMCOFF
31XBLME .Q
32 S %ZIS="Q"
33 D ^%ZIS
34 I POP S XBQFLG=1 KILL POP Q
35 I $D(IO("Q")) D S XBQFLG=1 Q
36 . S ZTRTN="EN^XBFLD",ZTIO=ION,ZTDESC="List dictionary",ZTSAVE("^UTILITY(""XBDSET"",$J,")="",ZTSAVE("XBFMT")=""
37 . D ^%ZTLOAD
38 . W !!,$S($D(ZTSK):"Request queued!",1:"Request cancelled!")
39 . D ^%ZISC
40 . KILL ZTSK,IO("Q")
41 . KILL ZTIO ; ^%ZTLOAD kills other ZT* variables, but not this one
42 .Q
43 U IO
44 Q
45 ;
Note: See TracBrowser for help on using the repository browser.