我想将数据过滤器接口用于其他用途。
然后我需要解析“select where”子句并使用其中的信息。
我能够解析 Where 子句并识别表达式中的不同列
但不引用它们
DFClause=Currentdatafilter << get where clause();<BR />SelectInnerExpr=Arg(parse(DFClause),1);<BR />// let assume for a second this will always return an expression of this type to simplify the example <BR />SelectInnerExpr= expr(:study_owner == "name" & :Is Electr. == 1);<BR /><BR />//so i can parse it with a simple for loop
for(iA=1,iA<=NArg(SelectInnerExpr),iA++,
TestColExp=Arg(Arg(SelectInnerExpr,iA),1); // here i can get the column as i need but as :ColumName
TestCol=eval(TestColExp); // so this does not really retun the column reference<BR /> colname= TestCol<< Get Name;
);
但是我得到的列是:ColumName
我现在如何获取列引用然后继续脚本?
列名=测试列<< 获取名称