How to Reset ID's of Controls

Richard Gaskin ambassador at fourthworld.com
Mon Jan 27 15:10:35 EST 2014


Peter Haworth wrote:

> The ID of a stack has always been changeable and, as I understand it,
> indicates the ID of the next control to be created in the stack.  That
> being the case, it seems like it would be possible for the vcs to sort a
> stack's controls by their id number, create the stack, set the ID of the
> stack to the id of the first control to be recreated, then recreate the
> controls.  There could be gaps in the control ids of course, in which case,
> the stack ID would have to be manipulated to bridge the gap.
>
> I'm probably missing something obvious but wouldn't that work?.

Image IDs have always been changeable, but because of the unique role of 
the stack ID, I'm not sure it's changeable at all, even now.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list