Placing and removing Groups with 3.0

Sarah Reichelt sarah.reichelt at gmail.com
Mon Sep 22 19:22:53 EDT 2008


> I'm having no success placing a group or removing a group using the place
> and remove commands from the msg box. Going to each blankety-blank card and
> choosing the menu items does work, however, but no command key equivalents
> and a card at a time. Tedious. Would have been better had I created the btn
> group for the Windows Menu, as Dan Shafer suggests in his book, at the
> start, but I just wasn't ready at that time. Shucks! But I should be able to
> write a multi-line msg that automates the process. But this is what I get:
>
> from:
>
> repeat with tCd = 2 to 57  -- I created the group on care 1
>  go cd tCd -- I know I shouldn't have to go to each cd, but I wanted to see
> the action
>  remove group "CBMenuBar"
> end repeat
>
> and this is the response I got:
>
> Script compile error:
> Error description: Chunk: missing chunk
>
> Similar with the place group command.
>

According to the docs, the "remove" & "place" commands require a card
to be specified.
So
   remove group "CBMenuBar" from card tCd
should work.

Similarly
   place group "Whatever" onto card tCd

Cheers,
Sarah



More information about the use-livecode mailing list