Hello,
I have a button within a group, when I click the button I want the
name of the group.
I script : put the name of the group of the target into x but it is
wrong.
What is the good syntax ?
Thank You
René from Paris___
use-revolution mailing
Bonjour René,
Hello,
I have a button within a group, when I click the button I want the
name of the group.
I script : put the name of the group of the target into x but it
is wrong.
What is the good syntax ?
Try: put the name of the OWNER of the target into x
See the the docs - owner
Bonjour René,
As a first idea, you might extract the name of the group from the
long name of the button
ex of the long name of one of my button :
button Header 1 1 of group grBtnsTrieurs of card id 1002 of stack
/Users/did/Desktop/Statistics.rev
I don't know if there is a simpler trick
Danke Klaus
Merci André
René
Le 28 mars 09 à 15:34, Klaus Major a écrit :
Bonjour René,
Hello,
I have a button within a group, when I click the button I want the
name of the group.
I script : put the name of the group of the target into x but it
is wrong.
What is the good syntax ?
Try
The doc says:
Tip: To refer to the newly-created group, use the last keyword:
group button Yes and button No
set the name of last group to Do It
Yet with this script:
clone group dave
set the name of it to spooky -- correctly names the clone
group spooky AND fld water
set
group to Do It
Yet with this script:
clone group dave
set the name of it to spooky -- correctly names the clone
group spooky AND fld water
set the name of last group to drinking --Rev renames the cloned
group spooky to drinking, and leaves the name of the master group
to grp id 1028
I get the same
only happened if you were not on the
card in which you were creating the objects. I believe it was
fixed in 2.7. This bug might happen in other cases. Did you try
this with 2.7?
Yes.
I simplified it down to:
group grp daveGroup AND fld spooky
set the name of last group to newName --Rev
and button No
set the name of last group to Do It
Yet with this script:
clone group dave
set the name of it to spooky -- correctly names the clone
group spooky AND fld water
set the name of last group to drinking --Rev renames the cloned
group spooky to drinking, and leaves the name