Duplicate Control IDs
bobs at twft.com
Mon Oct 24 14:28:03 EDT 2011
Hi Pete. I tried to duplicate this and cannot. I created 2 stacks. In stack one I had field1 and field2. In stack 2 I had field3 and field4. I grouped the fields in the second stack, copied the 2 fields in the first stack, selected the grouped fields in the second stack, clicked Edit Group, and then pasted the two fields. The result is, the pasted fields were properly assigned unique ID's different than the first two fields, which is what you would expect.
On Oct 24, 2011, at 11:19 AM, Pete wrote:
> It definitely took me by surprise! I plan to submit to QCC but thought I
> would check if anyone else had come across this at all.
> Molly's Revenge <http://www.mollysrevenge.com>
> On Mon, Oct 24, 2011 at 11:09 AM, Peter M. Brigham, MD <pmbrig at gmail.com>wrote:
>> On Oct 24, 2011, at 1:45 PM, Pete wrote:
>>> I have run into a weird situation that ends up with duplicate control IDs
>>> a card which I thought couldn't happen.
>>> The scenario is that I copy a group containing two field controls from
>>> 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
>>> do that tries to access the fields.
>>> I have worked around the problem by creating a new group, then copying
>>> two fields individually from the source group to the new one and that
>>> 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
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode