Changeset 763 for ccr/trunk/p
- Timestamp:
- May 18, 2010, 2:49:39 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CMXML.m
r647 r763 36 36 . N GTMP,G2 37 37 . M G2=GARY2(ZI) 38 . D DEMUX ARY^C0CMXP("GTMP","G2",2)38 . D DEMUX2^C0CMXP("GTMP","G2",2) 39 39 . M GARY3(ZI)=GTMP 40 40 Q … … 66 66 K C0CCBK("TAG") 67 67 D SEPARATE^C0CMCCD("GARY2","GARY") ; SEPARATE FOR EASIER BROWSING 68 D TEST3A 69 Q 70 ; 71 TEST3A ; INTERNAL ROUTINE 68 72 S ZI="" 69 73 F S ZI=$O(GARY2(ZI)) Q:ZI="" D ; 70 74 . N GTMP,G2 71 75 . M G2=GARY2(ZI) 72 . D DEMUX ARY^C0CMXP("GTMP","G2",2)76 . D DEMUX2^C0CMXP("GTMP","G2",2) 73 77 . M GARY4(ZI)=GTMP 74 78 Q -
ccr/trunk/p/C0CMXP.m
r728 r763 229 229 Q 230 230 ; 231 DEMUX2(OARY,IARY,DEPTH) ;CONVERT AN XPATH ARRAY PASSED AS IARY TO 232 ; FORMAT @OARY@(x,variablename) where x is the first multiple 233 ; IF DEPTH=2, THE LAST 2 PARTS OF THE XPATH WILL BE USED 234 N ZI,ZJ,ZK,ZL,ZM S ZI="" 235 F S ZI=$O(@IARY@(ZI)) Q:ZI="" D ; 236 . D DEMUX^C0CMXP("ZJ",ZI) 237 . S ZK=$P(ZJ,"^",3) 238 . S ZM=$RE($P($RE(ZK),"/",1)) 239 . I $G(DEPTH)=2 D ;LAST TWO PARTS OF XPATH USED FOR THE VARIABLE NAME 240 . . S ZM=$RE($P($RE(ZK),"/",2))_"."_ZM 241 . S ZL=$P(ZJ,"^",1) 242 . I ZL="" S ZL=1 243 . I $D(@OARY@(ZL,ZM)) D ;IT'S A DUP 244 . . S @OARY@(ZL,ZM_"[2]")=@IARY@(ZI) 245 . E S @OARY@(ZL,ZM)=@IARY@(ZI) 246 Q 247 ; 231 248 DEMUXXP1(OARY,IARY) ;IARY IS INCOMING XPATH ARRAY 232 249 ; BOTH IARY AND OARY ARE PASSED BY NAME
Note:
See TracChangeset
for help on using the changeset viewer.