Confirming a thing about IDs

Brian Milby brian at milby7.com
Thu Oct 11 17:58:15 EDT 2018


That works to touch the object, but I am recording a long ID and long name in the exported script comment header. For background groups I didn’t want the card in there since the group could be on multiple. If I left it in, then the reported long ID would change depending on the last card containing the group that was visited. So I adjust the value to be consistent. I also swap out the stack path and use the name.

Thanks,
Brian
On Oct 11, 2018, 4:49 PM -0500, Geoff Canyon via use-livecode <use-livecode at lists.runrev.com>, wrote:
> Ah, okay -- I have somewhat the same issue in Navigator. Wouldn't
>
> group id <id> of stack "<stack name>"
>
> always work?
>
> On Thu, Oct 11, 2018 at 2:40 PM Brian Milby via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > >
> > > > If a card containing a certain shared group has not been visited, then
> > > the
> > > > group must be referenced using background instead of group. For this
> > > > reason, I use “bkgnd” to identify any shared group.
> > >
> > > Not sure what you mean by this? I created a stack with a background/group
> > > id 1011. The group is placed on card 4 of the stack. Restart LC and
> > re-open
> > > the stack, and this puts true:
> > >
> > > put there is a group id 1011 of stack "untitled 1"
> > >
> > > No card containing the group had been visited. This is on a Mac, LC 8.x
> > >
> > > gc
> > >
> > >
> > I did not phrase that well (and had the details wrong). What actually
> > happens is that the returned long ID of objects in shared groups changes
> > depending on whether a card containing that group has been visited. If a
> > card has been visited, then "group id x of card id y" is returned. If not,
> > then "bkgnd id x" is returned. Probably not an issue for most, but if
> > looking to generate long IDs that are always the same for a given object
> > then it is.
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list