Duplicate Control IDs

Peter M. Brigham, MD pmbrig at gmail.com
Mon Oct 24 14:09:32 EDT 2011


On Oct 24, 2011, at 1:45 PM, Pete wrote:

> I have run into a weird situation that ends up with duplicate control IDs on
> a card which I thought couldn't happen.
> 
> The scenario is that I copy a group containing two field controls from one
> stack to a group in another stack.  After copying, the two field controls
> both have an ID of zero!  Needless to say, this plays havoc with anything I
> do that tries to access the fields.
> 
> I have worked around the problem by creating a new group, then copying the
> two fields individually from the source group to the new one and that works
> fine.
> 
> Anyone ever come across this before?

I've never seen this. Sounds like a bug, and a serious one at that. Control IDs should be completely robust and behave as advertised in all cases. Whatever you are doing seems to have exposed a crack in how the IDE (or is it the engine?) assigns IDs. You should report this to the QCC and flag it as urgent, in my opinion. I'd hate to have to start wondering about the stability of object IDs.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list