Incluir comentarios en un NewScript evaluado ()¿Cuál sería la forma más sencilla de incluir comentarios en un script que se escribe cuando se ejecuta?
dt = CurrentDataTable();
mystring = "Hello world!";
mylist = {"A", "B", "C"};
Eval(EvalExpr(dt << NewScript( "test",
// This comment will not appear in the new script as it is inside the Eval(EvalExpr())
mystring = Expr(mystring);
mylist = Expr(mylist);
)));
// JSL output
// mystring = "Hello world!";
// mylist = {"A", "B", "C"};ScriptingRe: Incluir comentarios en un NewScript evaluado ()Así es como lo haría
dt = CurrentDataTable();
mystring = "Hello world!";
mylist = {"A", "B", "C"};
Eval(EvalExpr(dt << NewScript( "test",
c = "// This comment will not appear in the new script as it is inside the"; Eval(EvalExpr())
mystring = Expr(mystring);
mylist = Expr(mylist);
)));
c = "// JSL output";
c="// mystring = \!"Hello world!\!";";
c = "// mylist = {\!"A\!", \!"B\!", \!"C\!"};";