Changeset 293
- Timestamp:
- Nov 20, 2008, 11:04:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CDIC.m
r279 r293 77 77 F S C0CI=$O(C0CTVARS(C0CI)) Q:C0CI="" D ; BY LINE NUMBER 78 78 . S C0CX=C0CTVARS(C0CI) ;VARIABLE NAME 79 . S C0CY=C0CX_"^"_C0CI ; VAR NAME ^ LINE NUM ^ XPATH80 . D PUSH^GPLXPATH("C0C2",C0C Y) ; PUT ONTO ARRAY79 . S $P(C0CX,"^",2)=C0CI ; LINE NUMBER IS SECOND PIECE 80 . D PUSH^GPLXPATH("C0C2",C0CX) ; PUT ONTO ARRAY 81 81 K @C0CPVARS 82 82 M @C0CPVARS=C0C2 83 83 Q 84 84 ; 85 LOAD ; LOAD VARIABLE NAMES AND XPATH IN ^C0CDIC(170 86 ; INITIAL LOAD OF THE CCR DICTIONARY 87 ; 88 N C0CDIC,C0CARY,C0CXML,C0CFDA,C0CI 89 S C0CDIC="^C0CDIC(170," ; ROOT OF THE CCR DICTIONARY 90 D GXPATH("C0CARY","C0CXML") ; FETCH THE VARIABLES AND XPATH INTO C0CARY 91 ; C0CXML WILL CONTAIN THE TEMPLATE - NOT NEEDED FOR LOAD 92 D PARY^GPLXPATH("C0CARY") ;TEST 93 F C0CI=1:1:C0CARY(0) D ; LOAD EACH VARIABLE 94 . S C0CFDA(170,"+"_C0CI_",",.01)=$P(C0CARY(C0CI),"^",1) ; VAR NAME 95 . S C0CFDA(170,"+"_C0CI_",",2)=$P(C0CARY(C0CI),"^",3) ; XPATH 96 . D UPDATE^DIE("","C0CFDA") 97 . I $D(^TMP("DIERR",$J)) U $P BREAK 98 . W "LOADING:",C0CI," ",C0CARY(C0CI),! 99 Q 100 ;
Note:
See TracChangeset
for help on using the changeset viewer.