f_rst_cmonth_date.srf 582 B

123456789101112131415
  1. $PBExportHeader$f_rst_cmonth_date.srf
  2. global type f_rst_cmonth_date from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_rst_cmonth_date (long arg_cmonth, ref datetime arg_sdate, ref datetime arg_edate)
  6. end prototypes
  7. global subroutine f_rst_cmonth_date (long arg_cmonth, ref datetime arg_sdate, ref datetime arg_edate);SELECT sdate,edate Into :arg_sdate,:arg_edate From cw_calendar Where cmonth = :arg_cmonth;
  8. IF sqlca.SQLCode <> 0 THEN
  9. arg_sdate = DateTime(Date('1901-1-1'),Time(0))
  10. arg_edate = DateTime(Date('2099-1-1'),Time(0))
  11. END IF
  12. end subroutine