Changeset 248 for ccr


Ignore:
Timestamp:
Oct 31, 2008, 2:04:17 PM (16 years ago)
Author:
George Lilly
Message:

enhancement to DPATVGPLRIMA(DFN) to provide index x"VAR"value in return array

Location:
ccr/trunk/p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/GPLRIMA.m

    r247 r248  
    413413    . . S ZZGN2=$NA(@ZZGN@(ZGVI))
    414414    . . ; W ZZGN2,!,$O(@ZZGN2@("")),!
    415     . . D H2ARY^GPLXPATH("ZZGA",ZZGN2) ; CONVERT HASH TO ARRAY
     415    . . D H2ARY^GPLXPATH("ZZGA",ZZGN2,ZGVI) ; CONVERT HASH TO ARRAY
    416416    . . ; D PARY^GPLXPATH("ZZGA")
    417417    . . D PUSHA^GPLXPATH("RTN","ZZGA") ; PUSH ARRAY INTO RETURN
  • ccr/trunk/p/GPLXPATH.m

    r178 r248  
    433433 Q
    434434 ;
    435 H2ARY(IARYRTN,IHASH) ; CONVERT IHASH TO RETURN ARRAY
    436  ;
     435H2ARY(IARYRTN,IHASH,IPRE) ; CONVERT IHASH TO RETURN ARRAY
     436 ; IPRE IS OPTIONAL PREFIX FOR THE ELEMENTS. USED FOR MUPTIPLES 1^"VAR"^VALUE
     437 I '$D(IPRE) S IPRE=""
    437438 N H2I S H2I=""
    438439 ; W $O(@IHASH@(H2I)),!
     
    443444 . . W $NA(@IHASH@(H2I)),!
    444445 . . Q  ;
    445  . D PUSH(IARYRTN,H2I_"^"_@IHASH@(H2I))
     446 . D PUSH(IARYRTN,IPRE_"^"_H2I_"^"_@IHASH@(H2I))
    446447 . ; W @IARYRTN@(0),!
    447448 Q
Note: See TracChangeset for help on using the changeset viewer.