Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Month's abbreviated name to digits
#3
Thank you. I attach my solution, for any interest.

Function tempf03
Code:
Copy      Help
function# str'mon
;_i=tempf03("Apr")
;out _i
lpstr m="JanFebMarAprMayJunJulAugSepOctNovDec"
int i=find(m mon)
if(i<0)
,err "Error in month"
i=i/3+1
ret i


Messages In This Thread
Month's abbreviated name to digits - by ssimop - 08-14-2018, 10:23 AM
RE: Month's abbreviated name to digits - by ssimop - 08-14-2018, 12:12 PM
RE: Month's abbreviated name to digits - by Kevin - 08-14-2018, 08:30 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)