limiting MKD entries
Posted: Fri Aug 07, 2009 12:45 pm
by bitsnz >> Wed, 22 Dec 2004 10:34:01 GMT
Hello All
How can i limit the type of object that is put into a Member Key Dictionary.
Example:
I have all the letters in the Alphabet that are created as objects and they reside in a MKD called MaxLettersByName.
I have another MDK called MinLettersByName of which i only want a select few (say consonants)
They are referenced by app.LetterMaster that has two collections called allMaxLettersByName and allMinLettersByName
When these Letters are created they are put into both MDK's but im wanted a condition or something similar so that only what i want will go into MinLettersByName (consonants)
Make sense?
Therefore if i look under LetterMaster (the class) and inspect instances then i inspect the collections i should see all the letters in allMaxLettersByName and only a few (say consonants) in the allMinLettersByName.
I'm sure there is a simple way of doing this. Maybe a method on the collection itself but what is it? I've tried reimplementing a method but i think i have ti wrong (or the wrong one)
Can anybody help?
Thanks People
p.s. The letter example above is just that; an example. It is not what im coding but it hopefully emphasises what im after.
Hello All
How can i limit the type of object that is put into a Member Key Dictionary.
Example:
I have all the letters in the Alphabet that are created as objects and they reside in a MKD called MaxLettersByName.
I have another MDK called MinLettersByName of which i only want a select few (say consonants)
They are referenced by app.LetterMaster that has two collections called allMaxLettersByName and allMinLettersByName
When these Letters are created they are put into both MDK's but im wanted a condition or something similar so that only what i want will go into MinLettersByName (consonants)
Make sense?
Therefore if i look under LetterMaster (the class) and inspect instances then i inspect the collections i should see all the letters in allMaxLettersByName and only a few (say consonants) in the allMinLettersByName.
I'm sure there is a simple way of doing this. Maybe a method on the collection itself but what is it? I've tried reimplementing a method but i think i have ti wrong (or the wrong one)
Can anybody help?
Thanks People
p.s. The letter example above is just that; an example. It is not what im coding but it hopefully emphasises what im after.