f_getdept.srf 478 B

1234567891011121314151617181920
  1. $PBExportHeader$f_getdept.srf
  2. global type f_getdept from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_getdept (dropdownlistbox ddlb)
  6. end prototypes
  7. global subroutine f_getdept (dropdownlistbox ddlb);string ls_dept
  8. Declare getdept cursor for
  9. select distinct departmentname from cw_department ;
  10. open getdept;
  11. Do While sqlca.sqlcode=0
  12. Fetch getdept into :ls_dept;
  13. if sqlca.sqlcode<>0 then exit;
  14. ddlb.additem(ls_dept)
  15. loop
  16. Close getdept;
  17. end subroutine