double id in one stack file ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
double id in one stack file ?
Hi All
I read in the doc
"For all objects, the ID is guaranteed to be unique within a stack"
I understand in a stack, not in stack file.
What about substack ?
I noticed that is possible to have an image in a substack with the same id of one other image in the mainstack. (LC 6.7.0)
Is there a way to prevent this ?
Thanks
Jean-Marc
I read in the doc
"For all objects, the ID is guaranteed to be unique within a stack"
I understand in a stack, not in stack file.
What about substack ?
I noticed that is possible to have an image in a substack with the same id of one other image in the mainstack. (LC 6.7.0)
Is there a way to prevent this ?
Thanks
Jean-Marc
https://alternatic.ch
Re: double id in one stack file ?
Hi Jean-Marc,
yes unique IDs only per (main or sub) stack!
You could put ALL of you images you will ever use in your stack(s) into ONE substack
so there will not be any ID conflict.
That's how I usually do this in my prokects, never had any trouble with missing or
wrong icons in buttons.
Best
Klaus
yes unique IDs only per (main or sub) stack!
You could put ALL of you images you will ever use in your stack(s) into ONE substack
so there will not be any ID conflict.
That's how I usually do this in my prokects, never had any trouble with missing or
wrong icons in buttons.
Best
Klaus
Re: double id in one stack file ?
Hi Klaus,
Thanks for confirmation
You could put ALL of you images you will ever use in your stack(s) into ONE substack
Yes that is what I did but in this case the user can import img in a substack
and I stored imgs used as icon in an other.
One cd with img icons in the same substack is probably the best way.
All the best
Jean-Marc
Thanks for confirmation
You could put ALL of you images you will ever use in your stack(s) into ONE substack
Yes that is what I did but in this case the user can import img in a substack
and I stored imgs used as icon in an other.
One cd with img icons in the same substack is probably the best way.
All the best
Jean-Marc
https://alternatic.ch
Re: double id in one stack file ?
Change the IDs of your own images to very high numbers, over 100,000. When the user imports images into the other stack they will have much lower numbers and conflicts won't occur.
This only works if your images are in a different stack, as is the case here.
This only works if your images are in a different stack, as is the case here.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: double id in one stack file ?
Jacque,
Thanks one more for help
It is not clear for me
In the doc I'm reading :
* 101,000-103,000: reserved
* 200,000-299,999: reserved for application use
I don't understand "reserved for application use" (MyApp or LC ?)
Best regards
Jean-Marc
Thanks one more for help
It is not clear for me
In the doc I'm reading :
* 101,000-103,000: reserved
* 200,000-299,999: reserved for application use
I don't understand "reserved for application use" (MyApp or LC ?)
Best regards
Jean-Marc
https://alternatic.ch
Re: double id in one stack file ?
"Application use" is your own stack or app, that range is reserved for developer's use. I also should have said to assign numbers larger than 200,000. I didn't look at the dictionary before replying and forgot the correct range.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com