Changeset 1416 for fmts


Ignore:
Timestamp:
Apr 17, 2012, 9:43:27 PM (13 years ago)
Author:
George Lilly
Message:

error processing for empty strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XF2N.m

    r1408 r1416  
    497497 . S ZK=$O(INARY(ZI,""))
    498498 . S ZINARY($$EXT^C0XUTIL(ZI),$$EXT^C0XUTIL(ZK))=""
    499  N ZV,ZIEN
     499 N ZV,ZIEN,ABORT
     500 S ABORT=0
    500501 N ZCNT S ZCNT=0
    501  F  S ZI=$O(ZINARY(ZI)) Q:ZI=""  D  ; LOOK FOR MISSING STRINGS
     502 F  S ZI=$O(ZINARY(ZI)) Q:(ZI="")!+ABORT  D  ; LOOK FOR MISSING STRINGS
    502503 . S ZV=$O(ZINARY(ZI,""))
     504 . I ZV="" S ABORT=1 Q  ; abandon quad -- missing an entry
    503505 . I ZV["^" S ZV=$TR(ZV,"^","|")
    504506 . I $O(@C0XSN@("B",ZV,""))="" D  ;
    505507 . . S ZCNT=ZCNT+1
    506508 . . S C0XFDA2(C0XSFN,"+"_ZCNT_",",.01)=ZV
     509 I +ABORT Q  ;
    507510 I $D(C0XFDA2) D  ;
    508511 . D UPDIE(.C0XFDA2) ; ADD MISSING STRINGS
    509512 . K C0XFDA2 ; CLEAN UP
    510  F  S ZI=$O(ZINARY(ZI)) Q:ZI=""  D  ; NOT GET ALL IENS
     513 F  S ZI=$O(ZINARY(ZI)) Q:ZI=""  D  ; NOW GET ALL IENS
    511514 . S ZV=$O(ZINARY(ZI,""))
    512515 . I ZV["^" S ZV=$TR(ZV,"^","|")
Note: See TracChangeset for help on using the changeset viewer.