int func_def_lmt() { dt_define('m_table', "select name,name from sysobjects where xtype='U'"); def_lmt_dict("table", "查看表", "m_table"); def_lmt_str("hire_date","查询字段"); def_lmt_str("d1","入职日期1"); def_lmt_str("d2","入职日期2"); return 1; }; int func_def_field() { string sql; int a, b; db_select_area(0) sql = "select * from "+lmt_val("ddate")+" where "+lmt_val("hire_date")+">='"+lmt_val("d1")+"' and "+lmt_val("hire_date")+"<='"+lmt_val("d2")+"'"; db_run(sql); a = db_field_count(); for (b = 0; b < a; b++) { db_set_field_info(b,db_field_name(b), db_field_name(b), 80); } return 1; }; int func_def_imp() { return 1; }; int func_init() { return 1; }; int func_query() { return 1; }; |