- Timestamp:
- Apr 17, 2012, 9:43:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1408 r1416 497 497 . S ZK=$O(INARY(ZI,"")) 498 498 . S ZINARY($$EXT^C0XUTIL(ZI),$$EXT^C0XUTIL(ZK))="" 499 N ZV,ZIEN 499 N ZV,ZIEN,ABORT 500 S ABORT=0 500 501 N ZCNT S ZCNT=0 501 F S ZI=$O(ZINARY(ZI)) Q: ZI=""D ; LOOK FOR MISSING STRINGS502 F S ZI=$O(ZINARY(ZI)) Q:(ZI="")!+ABORT D ; LOOK FOR MISSING STRINGS 502 503 . S ZV=$O(ZINARY(ZI,"")) 504 . I ZV="" S ABORT=1 Q ; abandon quad -- missing an entry 503 505 . I ZV["^" S ZV=$TR(ZV,"^","|") 504 506 . I $O(@C0XSN@("B",ZV,""))="" D ; 505 507 . . S ZCNT=ZCNT+1 506 508 . . S C0XFDA2(C0XSFN,"+"_ZCNT_",",.01)=ZV 509 I +ABORT Q ; 507 510 I $D(C0XFDA2) D ; 508 511 . D UPDIE(.C0XFDA2) ; ADD MISSING STRINGS 509 512 . K C0XFDA2 ; CLEAN UP 510 F S ZI=$O(ZINARY(ZI)) Q:ZI="" D ; NO TGET ALL IENS513 F S ZI=$O(ZINARY(ZI)) Q:ZI="" D ; NOW GET ALL IENS 511 514 . S ZV=$O(ZINARY(ZI,"")) 512 515 . I ZV["^" S ZV=$TR(ZV,"^","|")
Note:
See TracChangeset
for help on using the changeset viewer.