你好,
这是一个非常基本的问题,已经回答了很多次,但我无法让它发挥作用。
<BR />//Define the column name here first
Col = "mycolumn.xyz";
dt = current data table ();
//Create new table dt2, copy first table dt, sort it by two different columns
dt2 = Data Table( dt ) << Sort(
By( :WAFER, Column(dt, Col) ),
Order( Ascending, Ascending )
);
ColValues = {};
ColValues = Column(dt2, Col) << Get Values;
//And this is where it fails.
//Not working:
dt2 << select where (Column(dt2, Col) < 1);
dt2 << delete rows;
//This here is working:
dt2 << select where (:mycolumn.xyz < 1);
dt2 << delete rows;我尝试了 Eval(Substitute(Expr(),Expr(),Parse())) 的不同方法,但没有结果。
谢谢你的帮助
在列前添加单词 AS:
dt2 << select where (as Column(dt2, Col) < 1);