repeat for each-button or field list

David Vaughan dvk at dvkconsult.com.au
Tue Sep 17 15:57:01 EDT 2002


On Wednesday, Sep 18, 2002, at 06:44 Australia/Sydney, Sannyasin 
Sivakatirswami wrote:

> Why doesn't this work?
>
>  repeat for each button x in this stack
>     put  x & cr after tButtonList
>   end repeat
>   put tButtonList
>
...because button and field are not chunk types

>
>  Goal: take all values in fields of a card and poke them into an array 
> where
> each key is the name of the field and its value is the contents of the 
> field

I think you will need to use "repeat with x = 1 to the number of 
buttons of this stack" and reference button (field) x to get its name 
and contents.

regards
David
>
> fieldName[itsContents]
>
>
> Himalayan Academy Publications
>
> Sannyasin Sivakatirswami
> Editor's Assistant/Production Manager
> katir at hindu.org
> www.HinduismToday.com, www.HimalayanAcademy.com,
> www.Gurudeva.org, www.hindu.org
>
> Read The Master Course Lesson of the Day at
> http://www.gurudeva.org/lesson.shtml
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list