Groups id #

Bob Sneidar bobsneidar at iotecdigital.com
Sat May 25 19:52:33 EDT 2024


IDs are assigned according to the stack ID which increments by 1 every time an object is created. So yes, the stack ID is like an auto increment column in SQL. It assures that no two objects get the same ID, and the last object created is the highest ID in the stack. 

Sent from my iPhone

> On May 25, 2024, at 07:50, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi jbv,
> 
>> Am 25.05.2024 um 16:20 schrieb jbv via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Hi list,
>> 
>> I have a script that creates groups on the fly
>> with the command "group". These groups contain
>> various flds and imgs.
>> Can I always assume that the group with the highest
>> id # is the last one created ?
> 
> sounds logical, but I'm not sure, maybe you could store the ID of the last group somewhere.
> Use IT right after the groupd command:
> ...
> select this_and_that
> group
> put IT into the_id_of_just_created_group
> ...
> 
>> Thanks,
>> jbv
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de
> 
> 
> _______________________________________________
> 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