Question about keys
see3d at writeme.com
Mon Aug 1 08:59:17 CDT 2005
That is a simple method. I think I will restructure my data and then
use this method with a smaller array.
On Jul 31, 2005, at 10:32 PM, Brian Yennie wrote:
> I don't believe there is an automatic way of doing what you want
> (short of changing your data structure, which may not be an
> option). However, the below should be a pretty quick hack if my
> brain is working well enough in email land:
> put keys(myArray) into tKeys
> split tKeys using return and comma
> put keys(tKeys) into xValues
> - Brian
>> I have a two dimensional array: array[x,y]
>> I need to get the unique x keys into a list, there are about 20
>> unique ones, but they are dynamically created names (not numbers).
>> The y keys have tens of thousands of elements.
>> Is there a simple way to extract the unique x without iterating
>> through all the tens of thousands of keys?
>> I could restructure my code so that I keep a list of unique keys
>> as I create them, but this is more complex and could get out of
>> sync since I create the elements from many different places in the
>> I could also have a second array that keeps some of the
>> information without as many entries.
>> However, I would prefer keeping everything in one place (it is a
>> global) if I can, but I can't think of an easy and fast method.
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode