Print your e3 to see what it contains
Name Expr(e3) = Parse(Eval Insert("
^e1^;
^e2^;
"));
This possibly does what you are looking for
Names Default To Here(1);
dt = New Table("My Table");
e1 = Expr(Print("Run some code."));
e2 = Expr(
Print("Run some other code.")
);
e3 = Parse(Eval Insert("\[
^Name Expr(e1)^;
^Name Expr(e2)^;
]\"));
Eval(Eval Expr(dt << New Script("Test 3", Expr(Name Expr(e3)))));
I would generally avoid using Parse as it is a nightmare to debug
Names Default To Here(1);
dt = New Table("My Table");
e1 = Expr(Print("Run some code."));
e2 = Expr(
Print("Run some other code.")
);
e3 = EvalExpr(
Expr(Name Expr(e1));
Expr(Name Expr(e2));
);
Eval(Eval Expr(dt << New Script("Test 3", Expr(Name Expr(e3)))));
-Jarmo