別の用途でデータ フィルター インターフェイスを使用したい。
次に、「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 として取得します
列参照を取得してスクリプトを続行するにはどうすればよいですか?
colname= TestCol << 名前を取得