Choose Language Hide Translation Bar
0 Kudos

Introduce Eval Expr First() as a new wrapper for Eval( Eval Expr( ... ) )

I see Eval( Eval Expr( ... Expr( ) ) ) peppered throughout code, and once their separate functions is understood it is clear why they exist as separate functions.  However, to anyone new to scripting it takes time to start using all three functions effectively.  A new wrapper around Eval( Eval Expr( would reduce some perceived complexity.  For example, a wrapper called 'Eval Expr First' might make this more clear:


x = 2;

Eval Expr First(
	New Table( "Untitled 5",
		Add Rows( 1 ),
		New Column( "Column 1", Numeric, "Continuous", Format( "Best", 12 ),
			Formula( Expr( x ) )

Tracking Number:

Defect ID: