f_find_sortset.srf 451 B

123456789101112131415161718192021222324
  1. $PBExportHeader$f_find_sortset.srf
  2. global type f_find_sortset from function_object
  3. end type
  4. forward prototypes
  5. global function string f_find_sortset (string arg_dwname)
  6. end prototypes
  7. global function string f_find_sortset (string arg_dwname);String sortStr
  8. IF arg_dwname = "" THEN RETURN ""
  9. Select sortStr INTO :sortStr from u_sortSet
  10. where dwname = :arg_dwname;
  11. IF SQLCA.SQLCODE <> 0 THEN
  12. sortStr = ""
  13. END IF
  14. Return sortStr
  15. end function