Bug getting group name, plse check
prothero at earthednet.org
Sat Aug 15 00:50:07 CEST 2015
I just encountered what appears to be an error in the group function.
To duplicate, make a new stack.
Make a graphic for a background
Make a button
group the graphic and the background
Name the group something, anything, like “myGroup”
inside the button script, put:
send "getGroup" to grp "myGroup"
put the long name of me into lName
put wordOffset("Group",lName) into nw
put word nw+1 of lName into tGroup
put the short name of grp me into tGroup
in the group script, put:
put the short name of grp me into theGroupName
You will notice that the “put the short name of grp me ….” statement, the correct group name is in tGroup. However, if you continue past the breakpoint, the code fails. You can verify that the statement “put the short name of grp me into tGroup” works by putting a breakpoint in the group script.
It’s not a show-stopper, but seems to be a bug.
William A. Prothero
More information about the use-livecode