TQuery的Filter中能否使用统配符号?

解决方案 »

  1.   

    Filter能过滤非物理字段吗?例如计算字段。
      

  2.   

    回复人: lxl(是我,不是风) ( ) 信誉:100  2003-11-18 15:47:00  得分:0 
      当然可以,不过要你的数据库端支持呀这样的么,为什么我在select中支持的通配符,到Filter中不支持呢?
     
      

  3.   

    不支持LIKE 但支持‘=’
    如支持
    fcypmc='*中*'
    但不支持
    fcypmc like '*中*'
    以下是FILTER中支持的操作符
    Operator Meaning
    < Less than
    > Greater than
    >= Greater than or equal to
    <= Less than or equal to
    = Equal to
    <> Not equal to
    AND Tests two statements are both True
    NOT Tests that the following statement is not True
    OR Tests that at least one of two statements is True
    + Adds numbers, concatenates strings, ads numbers to date/time values (only available for some drivers)
    - Subtracts numbers, subtracts dates, or subtracts a number from a date (only available for some drivers)
    * Multiplies two numbers (only available for some drivers)
    / Divides two numbers (only available for some drivers)
    * wildcard for partial comparisons (FilterOptions must include foPartialCo
      

  4.   

    另:Filter不能过滤非物理字段
      

  5.   

    lxl(是我,不是风) ( ) 信誉:100  2003-11-18 15:57:00  得分:0 
      另:Filter不能过滤非物理字段头痛,又要写代码了。
      
     
      

  6.   

    呵呵,但是你完全可以把你所要计算的字段放在SQL查询中呀