Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.lang.vbscript > #22

VBScript dictionary delete by index ?

From "R.Wieser" <address@is.invalid>
Newsgroups alt.comp.lang.vbscript, alt.comp.os.windows-xp, alt.windows7.general
Subject VBScript dictionary delete by index ?
Date 2025-11-06 10:03 +0100
Organization A noiseless patient Spider
Message-ID <10eho89$10spk$1@dont-email.me> (permalink)

Cross-posted to 3 groups.

Show all headers | View raw


Hello all,

I've got a vbscript Dictionary object, and need to be able to delete a 
key-item pair by its index.  Can it be done and if so, how is it expressed ?

Remark: I can use

oDict.remove oDict.keys()(Index)

, but that takes two steps and is doing more work than is needed (which also 
excludes converting to a pair of arrays and converting it back afterwards by 
the way :-) )

Regards,
Rudy Wieser

Back to alt.comp.lang.vbscript | Previous | NextNext in thread | Find similar


Thread

VBScript dictionary delete by index ? "R.Wieser" <address@is.invalid> - 2025-11-06 10:03 +0100
  Re: VBScript dictionary delete by index ? "R.Wieser" <address@is.invalid> - 2025-11-06 15:03 +0100
    Re: VBScript dictionary delete by index ? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2025-11-06 22:12 +0800
      Re: VBScript dictionary delete by index ? solved "R.Wieser" <address@is.invalid> - 2025-11-06 16:09 +0100
        Re: VBScript dictionary delete by index ? solved "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2025-11-08 11:52 +0800
          Re: VBScript dictionary delete by index ? solved "R.Wieser" <address@is.invalid> - 2025-11-08 09:07 +0100
            Re: VBScript dictionary delete by index ? solved "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2025-11-08 22:55 +0800
              Re: VBScript dictionary delete by index ? solved "R.Wieser" <address@is.invalid> - 2025-11-08 16:49 +0100
  Re: VBScript dictionary delete by index ? C-Sharp User <csharp@invalid.invalid> - 2025-11-06 22:40 +0000
    Re: VBScript dictionary delete by index ? "R.Wieser" <address@is.invalid> - 2025-11-07 09:15 +0100

csiph-web