This is the chunk of code im looking in the PRG file.
procedure FUND_YTD
LINE1 = "BRIDGE STREET UNITED CHURCH"
LINE2 = "Fund Totals - Year to date"
LINE5 = "Prepare printer then press ANY KEY to begin printing..."
PRNTYR = year(date())-1
@ 3, 2 clear to 21,77
@ 5,(80-len(LINE2))/2 say LINE2
@ 7,26 say "Enter year to print... " get PRNTYR picture "9999"
read
IF PRNTYR<year(date())
LINE3 = "as at December 31, "+str(PRNTYR,4)
ELSE
LINE3 = "as at "+cmonth(date())+" "+str(day(date()),2)+", "+str(year(date()),4)
ENDIF
@ 9,(80-len(LINE5))/2 say LINE5
set console off
wait
IF lastkey()=27
@10, 2 clear to 10,77
return
ENDIF
@ 9, 2 clear to 9,77
@ 9,30 say "Printing - please wait..."
set device to print
set print on
?chr(027)+chr(069)
@ 3,(80-len(LINE1))/2 say LINE1
@ 4,(80-len(LINE2))/2 say LINE2
@ 6,(80-len(LINE3))/2 say LINE3
row=10
select 5
set filter to FUND_NAME<>"CURRENT"
go top
DO while .not. eof()
FUND=FUND_NAME
select 4
sum amount for FUND_NAME=FUND .and. year(DATE_CONT)=PRNTYR to TOTFUND
@row, 5 say FUND
@row,25 say TOTFUND picture "999,999.99"
select 5
IF .not. eof()
skip
FUND=FUND_NAME
select 4
sum amount for FUND_NAME=FUND .and. year(DATE_CONT)=PRNTYR to TOTFUND
@row,40 say FUND
@row,60 say TOTFUND picture "999,999.99"
select 5
IF .not. eof()
skip
row = row+2
loop
ELSE
exit
ENDIF
ENDIF
ENDDO
row = row+2
select 4
sum amount for FUND_NAME="CURRENT" .and. year(DATE_CONT)=PRNTYR to TOTCURR
@row, 5 say "CURRENT: $"
@row,25 say TOTCURR picture "999,999.99"
sum amount for year(DATE_CONT)=PRNTYR to ALLTOT
@row,40 say "GRAND TOTAL: $"
@row,60 say ALLTOT picture "999,999.99"
eject
set print off
set device to screen
set console on
@ 3, 2 clear to 21,77
select 4
set filter to
go top
select 1
go top
* end procedure FUND_YTD