nt = dw_query_condition.rowcount() if ll_rowcount <=0 then return
ls_filter_condition = '' for ll_row = 1 to ll_rowcount ls_column = dw_query_condition.getitemstring(ll_row, 'column_name') ls_compare = dw_query_condition.getitemstring(ll_row, 'compare') ls_value = dw_query_condition.getitemstring(ll_row, 'value') ls_and_or = dw_query_condition.getitemstring(ll_row, 'and_or') ls_column_type = dw_query.Describe(ls_column + ".ColType") // ls_column_type = left(ls_column_type, 3) if ll_row = ll_rowcount then //最后一行(不加and、or) choose case ls_column_type //根据数据类型设置Filter条件 case 'cha' ,'var' ,'str' // 字符型 ls_filter_condition = ls_filter_condition + & ls_column + ls_compare + "'" + ls_value + "'" case 'num','dec','lon','rea','ulo' // 数值型 上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
|