Syntax to get the keys of a array item

Jan Schenkel janschenkel at yahoo.com
Fri Jun 11 15:08:47 EDT 2004


--- K <nnoydb at excite.com> wrote:
> 
> 
> I have a array the array has keys with have keys
> i.e.
> 
> put "blah" into array["a"]
> put "b" into array["a","b"]
> put "c" into array["a","b","c"]
> 
> How would I get the keys of the sub array "b"?
> 

Hi Kevin,

Try the following :
--
  put the keys of tArray into tKeys
  filter tKeys with "a,b,*"
  ## now tKeys only has keys left
  ## that start with a,b,
  repeat for each line tKey in tKeys
    ## do whatever you want to do with
    ## those keys in the array
  end repeat
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list