Als Ersatz analysierenWenn ich in Substitute keine feste Anzahl von Symbolen habe, ist es dann möglich, eine for-Schleife und zu verwenden? analysieren um die Symbolnamen zu generieren?
Da stimmt etwas nicht:
myExpr=Expr(sum());
For( i=1, i<=10, i++, Insert Into (myExpr,parse("__x"||Char(i)||"__")));
Show(NameExpr(myExpr));
For( i=1, i<=10, i++, substitute (Name Expr(myExpr),parse("__x"||Char(i)||"__"),parse("y"||Char(i))));
Show(NameExpr(myExpr));Automatisierung und SkripterstellungBetreff: Als Ersatz analysierenSie aktualisieren den Wert von myExpr nicht
Names Default To Here(1);
myExpr = Expr(Sum());
For(i = 1, i <= 10, i++,
Insert Into(myExpr, Parse("__x" || Char(i) || "__"))
);
Show(Name Expr(myExpr));
For(i = 1, i <= 10, i++,
myExpr = Substitute(Name Expr(myExpr), Parse("__x" || Char(i) || "__"), Parse("y" || Char(i)))
);
Show(Name Expr(myExpr));Betreff: Als Ersatz analysierenoh, so nah!