Object > Place Group Menu with numerous repeated items

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

Object > Place Group Menu with numerous repeated items

Post by stevenchalmers » Thu Nov 27, 2014 12:22 am

Hello,

Issue: When I view the list of Groups that can be placed on a card using the Object > Place Group menu I am surprised to see one of my groups showing up dozens of times.

This confuses me because I can only find a handful of the instances of that group throughout my stack. I used the "Find and Replace" tool that searches names of objects and I found exactly the ones I expected. I was hoping to find one card that had dozens of instances but didn't.

Possible source of the problem: For reasons that escape me now ( this stack is a tad old and I just picked up the project again ) I copy lots of the the groups from a source card to several destination cards on openStack. I am careful to delete them all from those destination cards as a clean-up measure before I copy them over to make sure I don't end up with duplicates on those cards.

Summary: Where do I look to find the numerous duplicate instances of the group that is listed numerous time in the Object > Place Group menu?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Object > Place Group Menu with numerous repeated items

Post by jacque » Thu Nov 27, 2014 5:31 pm

The list of groups may not be updating. Try closing the stack and removing it from memory, then reopening it.

Is there a reason you are copying groups instead of placing them? If there are no changes to the copies, placing is more appropriate and will avoid the problem.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

Re: Object > Place Group Menu with numerous repeated items

Post by stevenchalmers » Fri Nov 28, 2014 4:45 pm

Jacque,

Thanks for the idea but unfortunately closing the stack and removing it from memory didn't help.

I'll take a look at removing the code that copies the stacks.

Thanks,


Steven

stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

Re: Object > Place Group Menu with numerous repeated items

Post by stevenchalmers » Sat Nov 29, 2014 12:49 am

I resolved the issue by creating a new stack and moving all the cards to it along with the script of the stack.

I wrote a simple script to do the copying of the cards then copied the stack script by hand. When I viewed the Object > Place Group menu the numerous repeated items were gone.


Steven

Post Reply