Ghost groups !

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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Ghost groups !

Post by jmburnod » Tue May 05, 2015 6:26 pm

Hi All,
I don't know how i have made it but it seems I have created 7 bg groups called "grNavigation".
I can see their script when I search an handler by the search tools included in the script window.
BUT
Not when I search it by the Find and replace of the edit menu. The result return only one group called "grNavigation".
And not in the project browser
I checked the id of all groups called "grNavigation" and all have the same id for each group called "grNavigation".
Is there someone who has met this strange behavior ?
Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Ghost groups !

Post by dunbarx » Tue May 05, 2015 10:08 pm

Jean-Marc.

All seven have the same id???

You see seven different scripts???

What happens if you quit and restart LC?

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Ghost groups !

Post by jmburnod » Tue May 05, 2015 10:31 pm

Hi Craig,
All seven have the same id???
When I get the id of all groups called "grNavigation" by script I get the same id for each
You see seven different scripts???
Yes
What happens if you quit and restart LC?
That changes nothing
Very strange, that is the first time I see this case
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Ghost groups !

Post by dunbarx » Tue May 05, 2015 10:49 pm

Jean-Marc.

So if you execute something like:

Code: Select all

repeat with y = 1 to the number of groups
put the id of group y into line y of groupIDList
end repeat
You get those seven id's.

And I suppose that:

Code: Select all

answer the number of groups
gives you 7? (Never mind any other groups that might exist on the card)

This is a good one...

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Ghost groups !

Post by jmburnod » Wed May 06, 2015 5:57 pm

Hi Craig,
You get those seven id's.
No. I get one line with one id
Fortutately that is the bg script i use (id 1012)

When I use:

Code: Select all

on allGrInstack pName
   put empty into rt
   set the lockmessages to true
   put the num of cds into nbc
   repeat with i = 1 to nbc
      open cd i
      repeat with z = 1 to the num of groups of cd i
         put i  & "," & the short name of group z of cd i & "," &  the short id of group z of cd i & cr after rt
         wait 1 milliseconds
      end repeat
   end repeat
   set the lockmessages to false
   if pName <> empty then
      filter rt with "*" & pName & "*"
   end if
   put rt
end allGrInstack
I get this (I have 10 cds with bg group "grNavigation"
1,grNavigation,1012
2,grNavigation,1012
3,grNavigation,1012
4,grNavigation,1012
5,grNavigation,1012
6,grNavigation,1012
7,grNavigation,1012
8,grNavigation,1012
9,grNavigation,1012
10,grNavigation,1012

I put "--" before all lines of all others groups called "grNavigation".
My stack works but I want cleaning it...

Jean-Marc
https://alternatic.ch

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

Re: Ghost groups !

Post by jacque » Wed May 06, 2015 6:03 pm

Those are all instances of the same group, placed on each card. They are not different groups. Your script asked for the groups on each card, and that will include the background group that is placed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Ghost groups !

Post by richmond62 » Wed May 06, 2015 7:48 pm

I have had this sort of problem when I have made a group to export something as a PNG image, have then ungrouped the group and deleted its component parts,
the group remains . . . as a result I have to select it via the prop inspector and hit the DELETE button on my keyboard.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Ghost groups !

Post by jmburnod » Wed May 06, 2015 8:51 pm

Hi Richmond,
Thank for this.
I have had this sort of problem when I have made a group to export something as a PNG image, have then ungrouped the group and deleted its component parts,
Interesting I export some groups as png file
I have to select it via the prop inspector and hit the DELETE button on my keyboard.
I can't do that. That is only by search script tools that I can see them :shock:
Jean-Marc
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Ghost groups !

Post by jmburnod » Wed Jun 24, 2015 5:46 pm

Hi All,
I changed the name of group I can see in project browser and the ghost group has disapeared. 8)
But I discover an other ghost group I can't delete by this way
I don't know yet I made it :shock:
Best regards
Jean-Marc
https://alternatic.ch

Post Reply