value := '%' + filtervalue;
fdmatchexact : //非匹配记录
value := filtervalue;
end
else //大小写不敏感
case matchtype of
fdmatchstart, fdmatchany : //起始部分匹配或任意位置匹配
value := ansiuppercase(filtervalue);
fdmatchend : //结束部分匹配
value := '%' + ansiuppercase(filtervalue); {do not localize}
fdmatchexact : //非匹配记录
value := ansiuppercase(filtervalue);
end;
end
else//字段类型为非字符串型
value := filtervalue;
if matchtype <> fdmatchrange then//如果匹配类型不为按范围
tquery(d).parambyname(fieldname + 'filter').value := value
else //否则
begin