Page 1 of 1

getting the group-ID or longID?

Posted: Mon May 16, 2011 3:46 pm
by Tomka
Hello,

maybe its a stupid question but i cant find any solution in the dictonary or forum.

How can I get the ID or long ID of a group where I click the mousebutton on?

Code: Select all

on mouseUp
   put long ID of target into fld 1
end mouseUp
This returns:
button id 1016 of group id 1014 of card id 1002 of stack
It contains the group-ID but how can I seperate it? I need this cause there are 2 objects in every group and I want to be able to modify each of these obejects later.
Theres the second question:

Is following example possible?

Code: Select all

global group_name
set <any_property> of image "blabla" in group group_name of this stack to <any_value>

Re: getting the group-ID or longID?

Posted: Mon May 16, 2011 4:05 pm
by BvG
the owner property

Re: getting the group-ID or longID?

Posted: Mon May 16, 2011 4:06 pm
by Tomka
Ah I see, thanks alot... :)

Re: getting the group-ID or longID?

Posted: Mon May 16, 2011 5:32 pm
by Regulae
Hi there,

Just a small point on your second question:

Code: Select all

global group_name
set <any_property> of image "blabla" in group group_name of this stack to <any_value>
... should work, with the following changes:

Code: Select all

global group_name
set the <any_property> of image "blabla" of group group_name of this stack to <any_value>
... the changes being the words "the" and "of", as in "set the..." and "of group group_name".

Regards,
Michael

Re: getting the group-ID or longID?

Posted: Mon May 16, 2011 6:38 pm
by Tomka
Thanks alot. It works fine.