Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
快速报表表达式在delphi中使用多个筛选条件_Delphi_Fastreport - Fatal编程技术网

快速报表表达式在delphi中使用多个筛选条件

快速报表表达式在delphi中使用多个筛选条件,delphi,fastreport,Delphi,Fastreport,我正在尝试使用fast report中的表达式过滤数据。当我在表达式中使用一个条件时,它工作正常 <DSPatientProfileDetails."category"> = 'T-Short term' =“T-短期” 但我需要不止一个条件,就像SQLWHERE条件一样。 这就是我试过的。但它给出了错误 =“T-短期”或=“A-抗生素”我将添加此作为答案。 应该像在delphi中一样在表达式周围加括号 (<DSPatientProfileDetails."category

我正在尝试使用fast report中的表达式过滤数据。当我在表达式中使用一个条件时,它工作正常

<DSPatientProfileDetails."category"> = 'T-Short term'
=“T-短期”
但我需要不止一个条件,就像SQLWHERE条件一样。 这就是我试过的。但它给出了错误


=“T-短期”或
=“A-抗生素”

我将添加此作为答案。 应该像在delphi中一样在表达式周围加括号

(<DSPatientProfileDetails."category"> = 'T-Short term') or (<DSPatientProfileDetails."category"> = 'A-Antibiotics') 
(=“T-短期”)或(=“A-抗生素”)

胡乱猜测。你试过(‘T-短期’)或(‘A-抗生素’)@J.Pelttari,成功了。谢谢:)