(02-28-2023, 11:14 PM)Kernelpanic Wrote:Quote:I haven't had a chance to test that code sample - is it broken?
Were you able to fix it?
The error was just this part:
setvalue "foo", "bar"
Print getvalue$("foo") ' prints bar
It was at the end of the program and that was wrong. Otherwise the program only outputs "bar". Nice!
The only part I'm not sure about was this comment in the final code:
Quote:' Warning: Don't expect this to work all the time, keys may overlap with
' others. Test thoughly.
Normally an associative array / dictionary shouldn't have issues with overlapping keys.
In the examples we had going last year, I don't think that was an issue.
I still have to find the code, to compare and see how they avoid this problem.