Placing and removing Groups with 3.0
Joe Lewis Wilkins
pepetoo at cox.net
Mon Sep 22 19:39:30 EDT 2008
Sarah,
I had tried that earlier, but since I've got everything fixed now, I
probably won't check it out again very soon. (smile) However, I was
using a card number in a repeat loop instead of a name, so maybe it
didn't like that.
Thanks, as usual, for your consistent patience,
Joe Wilkins
On Sep 22, 2008, at 4:22 PM, Sarah Reichelt wrote:
>> 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