Page 1 of 1

Getting error "Chunk: source is not a container".

Posted: Fri Mar 14, 2008 12:42 am
by Tom
I want to have a "Previous Record" and "Next Record" button on a background for a stack. I know that if I just do a plain:
on mouseUp
go previous card -- or go next card for the "Next Record" button
end mouseUp

The stack will wrap to the last card if I'm on the first card of the stack.

But I don't want that to happen, so I use:
on mouseUp
if this first card then
exit mouseUp
else go previous card
end mouseUp

This generates the following error:
Type Chunk: source is not a container (highlighting "if this first card then")
Object Previous Record
Line if this first card then
Hint mouseUp


What is wrong? I've tried every variation I could think of and always get the same error. My real issue is that I don't understand what "Chunk: source is not a container" means.

Tom

Posted: Fri Mar 14, 2008 2:47 am
by malte
Hi Tom,

this is one of the cases, where Rev is not as english like as one might wish.

Try:

if the number of this card = the number of cards of this stack

Hope that helps,

Malte