$PBExportHeader$w_rpt_printpagesetting.srw forward global type w_rpt_printpagesetting from w_rpt_publ_base end type type cb_ok from uo_imflatbutton within w_rpt_printpagesetting end type type st_1 from statictext within w_rpt_printpagesetting end type type rb_1 from radiobutton within w_rpt_printpagesetting end type type rb_2 from radiobutton within w_rpt_printpagesetting end type type rb_3 from radiobutton within w_rpt_printpagesetting end type type sle_1 from singlelineedit within w_rpt_printpagesetting end type type gb_1 from groupbox within w_rpt_printpagesetting end type type st_2 from statictext within w_rpt_printpagesetting end type type st_curpage from statictext within w_rpt_printpagesetting end type type st_pagecount from statictext within w_rpt_printpagesetting end type type st_5 from statictext within w_rpt_printpagesetting end type type em_copies from editmask within w_rpt_printpagesetting end type type cb_3 from uo_imflatbutton within w_rpt_printpagesetting end type end forward global type w_rpt_printpagesetting from w_rpt_publ_base integer x = 553 integer y = 288 integer width = 2043 integer height = 744 string title = "龙嘉打印页选择" boolean minbox = false windowtype windowtype = response! cb_ok cb_ok st_1 st_1 rb_1 rb_1 rb_2 rb_2 rb_3 rb_3 sle_1 sle_1 gb_1 gb_1 st_2 st_2 st_curpage st_curpage st_pagecount st_pagecount st_5 st_5 em_copies em_copies cb_3 cb_3 end type global w_rpt_printpagesetting w_rpt_printpagesetting type variables INT OBJ_PAGECOUNT datawindow OBJ_DW end variables forward prototypes public function string wf_checkexpr (string obj_str) end prototypes public function string wf_checkexpr (string obj_str);//wf_checkexpr long ls_flag,OBJ_COUNT,LS_SUBFLAG INT CHOICE_FLAG string LS_STR,STR_ARRAY[],MID_STR LS_STR=TRIM(OBJ_STR)+',' ls_flag=pos(LS_STR,",") DO WHILE ls_flag>0 and OBJ_COUNT<=1000 MID_STR=TRIM(left(LS_STR,ls_flag - 1)) CHOICE_FLAG=0 LS_SUBFLAG=pos(MID_STR,"-") IF INTEGER(MID_STR)>0 AND INTEGER(MID_STR)<=obj_pagecount THEN CHOICE_FLAG=1 ELSEIF LS_SUBFLAG>0 THEN IF INTEGER(LEFT(MID_STR,LS_SUBFLAG - 1))>0 AND INTEGER(LEFT(MID_STR,LS_SUBFLAG - 1))<=obj_pagecount & AND INTEGER(RIGHT(MID_STR,LEN(MID_STR) - LS_SUBFLAG))>0 AND INTEGER(RIGHT(MID_STR,LEN(MID_STR) - LS_SUBFLAG))<=obj_pagecount & AND INTEGER(LEFT(MID_STR,LS_SUBFLAG - 1))