|
Post by rikky on Apr 17, 2024 7:10:46 GMT 1
Hello. I have this program, which works fine: PRINT VERSION$
DECLARE bla$ ASSOC STRING bla$("1") = "een" bla$("2") = "" bla$("3") = "drie"
PRINT PRINT "NRKEYS(bla$) : " , NRKEYS(bla$) FOR abc = 1 TO NRKEYS(bla$) PRINT "bla$(", abc,") : ",bla$(STR$(abc)) NEXT abc PRINT
result: 4.8.1
NRKEYS(bla$) : 3 bla$(1) : een bla$(2) : bla$(3) : drie
But my other program: PRINT VERSION$
DECLARE bla$ ASSOC STRING LOCAL blabla$
blabla$ = ""
bla$("1") = "een" bla$("2") = blabla$ bla$("3") = "drie"
PRINT PRINT "NRKEYS(bla$) : " , NRKEYS(bla$) FOR abc = 1 TO NRKEYS(bla$) PRINT "bla$(", abc,") : ",bla$(STR$(abc)) NEXT abc PRINT
does not: 4.8.1
NRKEYS(bla$) : 2 bla$(1) : een bla$(2) :
Rik.
|
|
|
Post by Pjot on Apr 17, 2024 18:57:48 GMT 1
Thanks rikky, This is in fact the same issue as the previous one, now happening for hash table entries. Removed the check for NULL values there as well. Fixed in the latest beta. Best regards Peter
|
|
|
Post by rikky on Apr 18, 2024 7:55:45 GMT 1
Yes it works: 4.8.1
NRKEYS(bla$) : 3 bla$(1) : een bla$(2) : bla$(3) : drie Thanks
|
|