Grouping with lists in a script

Wilhelm Sanke sanke at hrz.uni-kassel.de
Sat Mar 8 13:04:00 EST 2003


Although there is a workaround (see the quotation below), I am still
curious to know how to produce a "list" as in

"group <c>" of the Metatalk Reference, where <c> stands for a list of
controls.

The Revolution Transcript Dictionary, which sometimes gives more
detailed information about matters of usage, does not mention the option
to use "group" with a list.

Well, anybody out there that has an idea?

Thanks in advance,

Wilhelm Sanke

On Tuesday, March 4th, I wrote:

> Subject: Grouping with lists in a script
>
> I needed to make a greater number of controls into a group by script.
>
> MetaTalk Reference (182) provides this information:
>
> "Syntax:
>
> group
>
> Description:
>
> The group comand makes a set of selected controls into a
> group/background.
> If a list of controls  is supplied, those controls will be added to
> the new group."
>
>
> I tried various forms of "lists" and put them into a variable
> "fieldlist", but then
>
> "group fieldlist" failed each time.
>
> Two forms of lists I tried - generated in a repeat-loop - were
>
> "fld 1
> fld 2
> fld 3
> ...."
>
> and
>
> "fld 1 and fld 2 and fld 3......".
>
> What finally worked after some experimenting was using  the "do"
> command, like in
>
>  "put "group"&&the name of fld 1 into Fieldlist
>   repeat with i = 2 to 100
>     put Space&"and"&&the name of fld i after last word of Fieldlist
>   end repeat
>  do Fieldlist"
>
> What am I missing in setting up the list structure for using the
> information about grouping in the MetaTalk Reference?
>
>
> Regards,
>
> Wilhelm Sanke
>
>




More information about the metacard mailing list