In case anyone needs this, here is how I worked it out:
I am printing a financial report that needs to show the number of months being reported, based on the beginning of the fiscal year, determined by a date the user enters.  Heres my code:
 
dia 'Enter Month Ending Date' vval=10 vlast 1 caption .vhdg at 10 20
if vval is null or vval = '[ESC]' or vlast = '[ESC]' then
  set v vendit = 'Cancel'
endi
set v vpe date = .vval
set v vnmr = +
  (ifgt((imon(.vpe)),.vfye,((imon(.vpe))-.vfye),((imon(.vpe))+.vfye)))
set currency $ pref 0 B
set v rnmr = (icap1(dwrd(.vnmr)))
set currency $ pref 2 B
 
I have a variable in the report called rhdg which is ('For the'&.rnmr&'Months Ending'&(ctxt(.vpe)))
 
It pulls the text value of the number of months in correctly and works great!!!
Thanks for all the input.
 
Jan

Reply via email to