My error......I had placed an ")" wrong, and should have used the As Column() function, not the Column() function
Names Default To Here( 1 );
dt_tab = New Table( "Example",
Add Rows( 4 ),
New Column( "abcd",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1, 2, 3, 4] )
),
New Column( "efgh",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [5, 6, 7, 8] )
)
);
name1 = "abcd";
name2 = "efgh";
Eval(
Substitute(
Expr(
dt_tab <<
New Column( name1 || "3",
formula(
As Column( __name1__ )
+As Column( __name2__ )
)
)
),
Expr( __name1__ ), name1,
Expr( __name2__ ), name2
)
);
Jim