通用查询组件设计(续三)[8]

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

本文简介:选择自 nxyc_twz 的 blog

              result := result + format('%0:s >= :%1:sstart)', [field, fieldname]);   {do not localize}

            if (startingvalue <> '') and (endingvalue <> '') then

              result := result + ' and (';   {do not localize}

            if endingvalue <> '' then

              result := result + format('%0:s <= :%1:send)', [field, fieldname]);  {do not localize}

          end

        end;

      end;

  end

  else

    case matchtype of

      fdmatchrange :

      begin

        if startingvalue <> '' then

          result := result + format('%0:s >= :%1:sstart)', [field, fieldname]); {do not localize}

        if (startingvalue <> '') and (endingvalue <> '') then

          result := result + ' and ('; {do not localize}

        if endingvalue <> '' then

          result := result + format('%0:s <= :%1:send)', [field, fieldname]);  {do not localize}

      end;

      else

        result := result + format('%0:s = :%1:sfilter ) ', [field, fieldname]); {do not localize}

    end;

end;

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

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

go top