f_get_sys_option_value.srf 652 B

1234567891011121314151617181920212223242526
  1. $PBExportHeader$f_get_sys_option_value.srf
  2. global type f_get_sys_option_value from function_object
  3. end type
  4. forward prototypes
  5. global function integer f_get_sys_option_value (string arg_optionid, ref string arg_ref_value, ref string arg_msg)
  6. end prototypes
  7. global function integer f_get_sys_option_value (string arg_optionid, ref string arg_ref_value, ref string arg_msg);Int rslt = 1
  8. uo_sys_option uo_option_sys
  9. uo_option_sys = Create uo_sys_option
  10. IF uo_option_sys.uof_get_sys_option_value(arg_optionid,arg_ref_value,arg_msg) = 0 THEN
  11. arg_ref_value = '-1000'
  12. rslt = 0
  13. GOTO ext
  14. END IF
  15. ext:
  16. destroy uo_option_sys
  17. RETURN rslt
  18. end function