Salut,
c'est une question très basique à laquelle on a répondu plusieurs fois, mais je n'arrive pas à la faire fonctionner.
<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;J'ai essayé différentes méthodes de Eval(Substitute(Expr(),Expr(),Parse())) mais sans résultat.
Merci pour ton aide
Ajoutez le mot AS avant la colonne :
dt2 << select where (as Column(dt2, Col) < 1);