Re: VBScript dictionary delete by index ?

"R.Wieser" <[email protected]> Fri, 7 Nov 2025 09:15:50 +0100
Newsgroups alt.comp.lang.vbscript,alt.comp.os.windows-xp,alt.windows7.general
Organization A noiseless patient Spider
Message-ID <[email protected]>
C-Sharp User,

> How about CoPilot method:
...
> key = dict.Keys()(1)
> dict.Remove key

well, I mentioned that I'm already using it :

>> oDict.remove oDict.keys()(Index)

I would like to skip having to resolve from index to key first.

But it turns out that that "dict.Remove" can be used in a "for each key in 
dict" loop, without it skipping entries or trying to access the dict beyond 
its end.

Regards,
Rudy Wieser