通用查询组件设计(续四)[1]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 nxyc_twz 的 blog

通用查询组件设计

作者:nxyc_twz@163.com

  前段时间由于工作较忙,无暇整理本组件的相关文档,请大家谅解!以后我会陆续整理公布该组件的所有相关文档及源码!

设置字段变量

procedure tmyfieldinfo.setvariables(d: tdataset);

var

  value : string;

begin

//设置变量值

  if ansiuppercase(filtervalue) = 'null' then

    exit;

  if fieldtype = ftstring then

  begin

    if casesensitive then

      case matchtype of

        fdmatchstart, fdmatchany :

          value := filtervalue;

        fdmatchend :

          value := '%' + filtervalue;

        fdmatchexact :

          value := filtervalue;

      end

    else

本文关键:通用查询组件设计
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top