Changeset 1611


Ignore:
Timestamp:
Feb 26, 2013, 8:40:36 PM (12 years ago)
Author:
George Lilly
Message:

moving on

Location:
fmts/trunk/p
Files:
2 edited

Legend:

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

    r1610 r1611  
    3131 ;       tree(child,'|  '+prefix );
    3232 ;
    33 tree(where,prefix) ; show a tree starting at a node in MXML. node is passed by name
     33tree(where,prefix) ; show a tree starting at a node in MXML. where is passed by value
    3434 ;
    3535 i $g(prefix)="" s prefix="|--" ; starting prefix
     
    6666 S TR=TR_$C(127)
    6767 N ZR S ZR=$TR(STR,TR)
    68  S ZR=$$LDBLNKS(ZR) ; get rid of leading blanks
     68 S ZR=$$LTRIM(ZR) ; get rid of leading blanks
    6969 QUIT ZR
    7070 ;
    71 LDBLNKS(st) ; extrinsic which removes leading blanks from a string
     71LDBLNKS(st) ; extrinsic which removes leading blanks from a string - deprecated see LTRIM
    7272 n zr s zr=st
    7373 f  q:$e(zr,1)'=" "  s zr=$e(zr,2,$l(zr))
    7474 q zr
     75 ;
     76 ; copied from VPRJT - thanks.
     77UP(X) ; return uppercase for X
     78 Q $TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
     79 ;
     80LTRIM(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))
    7583 ;
    7684VACCD ; set C0XJOB to the VA CCD
  • fmts/trunk/p/C0XOTLN.m

    r1610 r1611  
    114114 ;
    115115LDBLNKS(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))
    119118 ;
    120119VACCD ; set C0XJOB to the VA CCD
Note: See TracChangeset for help on using the changeset viewer.