Syntax to get the keys of a array item

K nnoydb at excite.com
Fri Jun 11 15:13:43 EDT 2004




This is what I am doint actuall but for some reason the keys isn't reflecting the sub items.  I probally have a larger bung somewhere thanks.


-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
Any resemblance between the above and my own views is non-deterministic.

 The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
 is left as an exercise for the second god coefficient. 
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)



 --- On Fri 06/11, Jan Schenkel < janschenkel at yahoo.com > wrote:
From: Jan Schenkel [mailto: janschenkel at yahoo.com]
To: use-revolution at lists.runrev.com
Date: Fri, 11 Jun 2004 12:08:47 -0700 (PDT)
Subject: Re: Syntax to get the keys of a array item

--- K <nnoydb at excite.com> wrote:<br>> <br>> <br>> I have a array the array has keys with have keys<br>> i.e.<br>> <br>> put "blah" into array["a"]<br>> put "b" into array["a","b"]<br>> put "c" into array["a","b","c"]<br>> <br>> How would I get the keys of the sub array "b"?<br>> <br><br>Hi Kevin,<br><br>Try the following :<br>--<br>  put the keys of tArray into tKeys<br>  filter tKeys with "a,b,*"<br>  ## now tKeys only has keys left<br>  ## that start with a,b,<br>  repeat for each line tKey in tKeys<br>    ## do whatever you want to do with<br>    ## those keys in the array<br>  end repeat<br>--<br><br>Hope this helped,<br><br>Jan Schenkel.<br><br>=====<br>"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)<br><br><br>	<br>		<br>__________________________________<br>Do you Yahoo!?<br>Friends.  Fun.  Try the all-new Yahoo! Messenger.<br>http://messenger.yahoo.com/ <br>_______________________________________________<br>use-revolution 
 mailing list<br>use-revolution at lists.runrev.com<br>http://lists.runrev.com/mailman/listinfo/use-revolution<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the use-livecode mailing list