Syntax to get the keys of a array item
janschenkel at yahoo.com
Fri Jun 11 14:08:47 CDT 2004
--- K <nnoydb at excite.com> wrote:
> I have a array the array has keys with have keys
> 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"?
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
Hope this helped,
"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.
More information about the use-livecode