Re: VBScript dictionary delete by index ? solved

"Mr. Man-wai Chang" <[email protected]> Sat, 8 Nov 2025 22:55:23 +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 8/11/2025 4:07 pm, R.Wieser wrote:
> 
> I'm not at all sure about the first, as the "next" pointer (for the
> iteration) doesn't need to be replaced (assuming that its retrieved and
> stored somewhere as part of advancing to the current item).
> 
> The problem with a "for i=0 to dict.count-1" loop is that it both will skip
> the item after the one thats being removed, and it will not adjust the "upto
> here" part of the for loop to the new size of the array.

You can always create a small program with a simpler oDict to find out. 
Anyway, glad you solved the problem.

-- 
   @~@   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