Code: Select all
NewMap xTest.s()
If xTest("foo")="bar" ; if for whatever reason I want to test if a map element has a certain value...
Debug "bar found" ; and of course here it doesn't, it would be nice sometimes if the element weren't created as "" or 0
Else
If FindMapElement(xTest(),"foo") ; in this example "foo" element is now found,
Debug "foo found!" ; even though the intention was never to create it.
EndIf
EndIf
I've also thought a SetReadOnly(xTest(),#True) would be handy, meaning even a call to AddMapElement() would fail, preserving the current values in the Map until read-only set back to #False.
As always, thanks for everything!