Hi there,
I have the following code which places x amount of variables into graph builder using the Eval Expr. When I get to the Elements phase, I find that extra parenthesises are placed at the end giving the folooing expression (shorterned):
Elements(Position(1, 1), Line(X, Y, Legend(37)), Elements(Position(1, 3), Line(X, Y, Legend(39))), Elements(Position(1, 19), Line(X, Y, Legend(55))), Elements(Position(1, 20), Line(X, Y, Legend(56))))
To me it there is a missing parenthesis in line one and an extra parenthesis on line 4 closing the statement off.
It should read
Elements(Position(1, 4), Line(X, Y, Legend(40))), Elements(Position(1, 5), Line(X, Y, Legend(41))), Elements(Position(1, 6), Line(X, Y, Legend(42))),
My assumption is the Eval Expr is not the correct syntax for this part.
graphArray_Items = N Items( graphArray );alertArray_Items = N Items (alertArray);// an expression for the graph's variables vars = Expr( Variables( X( :EFH ), ) );_elements = Expr (Elements( Position( 1, 1 ), Line( X, Y, Legend( 37 ) ) ) ,);show(_dispatch);For (intArray = 1, intArray <= graphArray_Items, intArray ++, //Find Column Number graphArray_source = graphArray[intArray]; Insert Into( vars, Eval Expr( Y( Expr( "SB"|| graphArray_source ||"_DRVD_XNULL" )), Position( 1 ) ) ); Insert Into( _elements, Eval Expr( Elements( Position( 1, Expr(intArray+2) ) , Line ( X,Y, Legend ( Expr(intArray+38) ) ) ), )); show(_elements); // build the Graph Builder expression from those gb = Eval Expr( Graph Builder( Size( 1431, 928 ), Show Control Panel( 0 ), Expr( Name Expr( vars ) ), Expr(Name Expr (_elements))//, //Expr(Name Expr (_dispatch)) ) ); show(gb);gb;graphArray_Items = N Items( graphArray );alertArray_Items = N Items (alertArray);// an expression for the graph's variables vars = Expr( Variables( X( :EFH ), ) );_elements = Expr (Elements( Position( 1, 1 ), Line( X, Y, Legend( 37 ) ) ) ,);//_dispatch = Expr (SendToReport());show(_dispatch);