Re: VBScript dictionary delete by index ? solved
"Mr. Man-wai Chang" <[email protected]> Sat, 8 Nov 2025 11:52:26 +0800
| Newsgroups | alt.comp.lang.vbscript,alt.comp.os.windows-xp,alt.windows7.general |
|---|---|
| Organization | https://sites.google.com/site/changmw/ |
| Message-ID | <[email protected]> |
On 6/11/2025 11:09 pm, R.Wieser wrote: > > If I can use a "for each" in reverse than I already have the key (and don't > need the index) > You can first sort oDict in reverse order, but that's quite silly. :) > I just realized I took it for granted that deleting a > key-item pair while inside a standard "for each" loop > would cause an error/crash (looping beyond the last item). That surely could be a problem for linked list, not array index. -- @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch! / v \ May the Force and farces be with you! Live long and prosper!! /( _ )\ https://sites.google.com/site/changmw/ ^ ^ https://github.com/changmw/changmw