Re: Stability of a button's ID property when cloning stacks
Posted: Thu Jun 25, 2020 10:12 am
Here is an additional observation.
Richard's post explains that a stack's ID number is only a placeholder for the next ID to be allocated and that the text name has to be unique. However, Livecode allows a sub stack to have the same name as another stack as long as it does not share the same main stack. It even seems to allow the sub stack to have the same name as the main stack. However don't try either of these as the IDE does not like it and gets into a bit of a tizzy.
The dictionary implies that the stack name is really a placeholder for the file name of the stack file which is one reason why it has to be unique, that should mean that sub stacks can share the same name but it appears not to be the case.
Richard's post explains that a stack's ID number is only a placeholder for the next ID to be allocated and that the text name has to be unique. However, Livecode allows a sub stack to have the same name as another stack as long as it does not share the same main stack. It even seems to allow the sub stack to have the same name as the main stack. However don't try either of these as the IDE does not like it and gets into a bit of a tizzy.
The dictionary implies that the stack name is really a placeholder for the file name of the stack file which is one reason why it has to be unique, that should mean that sub stacks can share the same name but it appears not to be the case.