[06 Dec 2009] Problem with Designers ID numbers.

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Bugala
Posts: 1411
Joined: Sun Feb 14, 2010 7:11 pm

[06 Dec 2009] Problem with Designers ID numbers.

Post by Bugala »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 06 Dec 2009 09:11:28 -0000

So im trying to make some custom code that shows and hides layers depending on value of X.

However, i have came to a problem. I havent figured out how to set layers IDs in designer so they wouldnt give any trouble.

If i ID them simply from beginning 1, 2, 3, it gives me trouble.

Then i tried to set IDs to 10, 11, 12, that didnt help

then 101, 102, and it said out of range.

setting 32,33,34 didnt help either.

So is there any way to give ID numbers so that they dont act random?

Maybe ID them all?
User avatar
airsoftsoftwair
Posts: 5919
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[08 Dec 2009] Re: Problem with Designers ID numbers.

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Dec 2009 01:20:06 +0100
So im trying to make some custom code that shows and hides layers depending on value of X.

However, i have came to a problem. I havent figured out how to set layers IDs in designer so they wouldnt give any trouble.

If i ID them simply from beginning 1, 2, 3, it gives me trouble.

Then i tried to set IDs to 10, 11, 12, that didnt help

then 101, 102, and it said out of range.

setting 32,33,34 didnt help either.

So is there any way to give ID numbers so that they dont act random?

Maybe ID them all?
I think what you want to use is SetLayerName(). By assigning a name to a layer, you can be sure that it never changes.
Locked