Question about keys
Brian Yennie
briany at qldlearning.com
Sun Jul 31 22:32:06 EDT 2005
Dennis,
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
> All,
>
> 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 code.
>
> 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.
>
> Thanks,
> Dennis
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the use-livecode
mailing list