Button, Button, whose got the button?

In a form,
Create a push button.
Place a call statement in its procedure.
Copy and paste that button.
Group the two buttons.
Copy and Paste the group…

What do you see?

For future reference, I’m not much for puzzles. If you want to post a bug, please post it - not a cliffhanger.

Ok, I’ll play along just this once.

If a group contains an object with a call statement, you cannot copy and paste the group. You’ll just get an empty object. If you try to ungroup that empty object, you get no objects at all.

Interestingly, there is something special about the call statement. If the code was a nop statement, it works ok. It’s probably not just the call statement, further testing will be needed.

For now, you can use option-drag to copy the object within the form, or you can un-group the object and copy it.

Ok, understood. It took a while to figure this one out, since the problem did not occur without code in the button, and it was getting annoying to have to ungroup and regroup. So I will officially consider this a bug, and thanks for the option-drag tip! (Perhaps it has something to do with how the clipboard works.)

I should have mentioned that I added this to the bug tracker database.