Opened 21 years ago
Closed 19 years ago
#140 closed defect (invalid)
error of the 'Eval'
Reported by: | Javier Gallardo | Owned by: | manuelb |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Various | Version: | head |
Severity: | normal | Keywords: | |
Cc: | jlaybar |
Description
the following code:
Eval("Serie a = CalInd(WD(1), Diario);");
Eval("Serie {a := CalInd(WD(2), Diario)};");
show a warning message and it does not do it
Change History (6)
comment:1 Changed 21 years ago by
Owner: | changed from danirus to manuelb |
---|
comment:2 Changed 21 years ago by
Status: | new → assigned |
---|
comment:3 Changed 21 years ago by
comment:4 Changed 21 years ago by
Cc: | jlaybar added |
---|
comment:6 Changed 19 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Sorry but allways an Eval call will return just one BSyntaxObject.
This is not a bug and there are no problem about Eval function behaviour.
You must specify the type of requiered object before Eval instead of inside it:
Serie Eval("a = CalInd(WD(1), Diario);");
Serie Eval("{a := CalInd(WD(2), Diario)};");
Thanks to report it
As Victor tells us in the usuarios-tol list, using Eval as follows solves the problem:
Serie Eval("Serie a = CalInd(WD(1), Diario);");
Serie Eval("Serie {a := CalInd(WD(2), Diario)};");
Anyway, it seems probable that something has to be done about all this, bacause not
allways an Eval call will have just a line of code, so that it will NOT return just one
BSyntaxObject.