- Timestamp:
- Feb 26, 2013, 8:40:36 PM (12 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XCDA.m
r1610 r1611 31 31 ; tree(child,'| '+prefix ); 32 32 ; 33 tree(where,prefix) ; show a tree starting at a node in MXML. node is passed by name33 tree(where,prefix) ; show a tree starting at a node in MXML. where is passed by value 34 34 ; 35 35 i $g(prefix)="" s prefix="|--" ; starting prefix … … 66 66 S TR=TR_$C(127) 67 67 N ZR S ZR=$TR(STR,TR) 68 S ZR=$$L DBLNKS(ZR) ; get rid of leading blanks68 S ZR=$$LTRIM(ZR) ; get rid of leading blanks 69 69 QUIT ZR 70 70 ; 71 LDBLNKS(st) ; extrinsic which removes leading blanks from a string 71 LDBLNKS(st) ; extrinsic which removes leading blanks from a string - deprecated see LTRIM 72 72 n zr s zr=st 73 73 f q:$e(zr,1)'=" " s zr=$e(zr,2,$l(zr)) 74 74 q zr 75 ; 76 ; copied from VPRJT - thanks. 77 UP(X) ; return uppercase for X 78 Q $TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ") 79 ; 80 LTRIM(X) ; remove spaces from left side 81 N POS F POS=1:1:$L(X) Q:$E(X,POS)'=" " 82 Q $E(X,POS,$L(X)) 75 83 ; 76 84 VACCD ; set C0XJOB to the VA CCD -
fmts/trunk/p/C0XOTLN.m
r1610 r1611 114 114 ; 115 115 LDBLNKS(st) ; extrinsic which removes leading blanks from a string 116 n zr s zr=st 117 f q:$e(zr,1)'=" " s zr=$e(zr,2,$l(zr)) 118 q zr 116 n pos f pos=1:1:$l(st) q:$e(st,pos)'=" " 117 q $e(st,pos,$l(st)) 119 118 ; 120 119 VACCD ; set C0XJOB to the VA CCD
Note:
See TracChangeset
for help on using the changeset viewer.