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


Groups > microsoft.public.scripting.vbscript > #12346

Re: Modifying array elements in a dictionary is ineffective?

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Modifying array elements in a dictionary is ineffective?
Date 2021-04-11 15:41 -0400
Organization A noiseless patient Spider
Message-ID <s4vjfa$med$1@dont-email.me> (permalink)
References <s8ls3gg24yv1$.flt0oavzanef$.dlg@40tude.net>

Show all headers | View raw


"JJ" <jj4public@gmail.com> wrote

| There is no exception or error message. It doesn't matter whether the 
array
| is fixed or variable length.
|

  Thinking about this I was curious what you were trying
to accomplish. I've actually used arrays in dictionaries quite
a bit, but it's cases where I want to store a lot of data
about single items. For instance, it's efficient to name a key
for a file name, then have an array of file properties as the
data. It works well because it exploits the strength of a
dictionary: searching by unique ID. In that usage it's similar
to a database. If there's no relevant, unique key name then
multiple arrays would usually make more sense. For example,
array1 stores a number of random values that need to be
searched, while array2, or a second dimension, stores related
data. You can do something similar returning Dic.Keys as an
array. But I can't think of an example where I would need
to search through numerous arrays in a Dictionary, with no
guidance provided by the key name. That would be like
a database table with no column of unique values.


Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Modifying array elements in a dictionary is ineffective? JJ <jj4public@gmail.com> - 2021-04-10 07:46 +0700
  Re: Modifying array elements in a dictionary is ineffective? "Mayayana" <mayayana@invalid.nospam> - 2021-04-09 23:05 -0400
    Re: Modifying array elements in a dictionary is ineffective? JJ <jj4public@gmail.com> - 2021-04-10 17:08 +0700
      Re: Modifying array elements in a dictionary is ineffective? "Mayayana" <mayayana@invalid.nospam> - 2021-04-10 08:04 -0400
  Re: Modifying array elements in a dictionary is ineffective? "R.Wieser" <address@not.available> - 2021-04-10 10:39 +0200
  Re: Modifying array elements in a dictionary is ineffective? "Mayayana" <mayayana@invalid.nospam> - 2021-04-11 15:41 -0400
    Re: Modifying array elements in a dictionary is ineffective? JJ <jj4public@gmail.com> - 2021-04-12 09:13 +0700
      Re: Modifying array elements in a dictionary is ineffective? "Mayayana" <mayayana@invalid.nospam> - 2021-04-12 09:51 -0400
        Re: Modifying array elements in a dictionary is ineffective? JJ <jj4public@gmail.com> - 2021-04-13 00:08 +0700

csiph-web