"it" refers to button after copy in IDE, but to group of button in standalone

Dr. Hawkins dochawk at gmail.com
Mon Aug 31 14:22:14 EDT 2015


This took a while to track down, partially due to the long compile times.

the code:

     *copy* btn "ch" to *group* "btnGrp"

     *answer* "theLin: " & cr & "1: " & item 1 of theLin & cr & "2: " & item
2 of theLin & cr & "3: " & item 3 of theLin  \

               & cr & cr & it & cr & the long id of it

shows that "it" contains not the id of the button, but the id of the group
in a standalone.

However, in the IDE, it works just fine, and the id from it can be used to
manipulate the button.

This is in 7.0.6

Can anyone confirm, or tell me that it *should* act like this?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list