set the name of last group not working?

Josh Mellicker josh at dvcreators.net
Tue Feb 14 17:34:13 EST 2006


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 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 result when changing the last line to:

set the name of it to "drinking"


---

Is this a bug in Rev?

Or am I doing something wrong?

How do you name a newly formed group that consists of a group and a  
field?





More information about the use-livecode mailing list