crash looping through strings array
by Sven Schreiber
Hi, here's a crash that I guess should be not too difficult to fix. It
only happens (apparently) when using wrong syntax, as I found out by
mistake:
<hansl>
strings A = defarray("a")
# correct:
loop foreach which A
string renamed = "_" ~ "$which"
print "$which"
endloop
# wrong / crash:
loop foreach which A
string renamed = "_" ~ which
endloop
</hansl>
This happens with 2026a, but I guess it's older than that.
thanks
sven
3 months
dbnomics, no sync of main window in loop
by Sven Schreiber
Hi,
and here's another little problem, but far less serious.
<hansl>
clear
open dbnomics
country = "ARG"
whichpol = "LEV1_INT"
loop 1
data
OECD/DSD_CAPMF@DF_CAPMF/@country.A.POL_STRINGENCY.@whichpol.0_TO_10
endloop
</hansl>
The thing is that there are no series visible in the main window, as if
no dataset existed. But it's there; when doing, for example, "varlist"
(or "ls") in the console, then variables and data are printed. The
enclosing loop seems to be necessary to trigger the problem - obviously
I originally had many more iterations there, but that's not even
necessary, it seems.
Sometimes the main window is updated after "ls", but right now I also
saw a case where this didn't happen. A workaround is to use "store" and
then reload the result.
This is 2026a on Windows.
thanks
sven
3 months, 1 week