Create account / Log in

Acessing properties inside properties

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Acessing properties inside properties

Postby cemoreno » October 13th, 2020, 2:01 pm

I have counters with several steps each. Each step has another value asociated to it, "Strenght". Different units have different values (and different number of steps).

I can create several markers for each counter, for example:
Step_1 = 5
Step_2 = 6
Step_3 = 9;

Each unit has also a Dynamic Property "Steps".

So I can access {("Step_")+$Steps$}. That gives me the appropiate property name holding the strength value.

But I am unable to access that value. What would be the correct syntax?
cemoreno
 
Posts: 67
Joined: September 30th, 2010, 4:57 pm

Re: Acessing properties inside properties

Postby Cattlesquat » October 13th, 2020, 2:06 pm

{ GetProperty("Step_" + Steps) }
User avatar
Cattlesquat
 
Posts: 953
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA


Return to Module Design

Who is online

Users browsing this forum: No registered users and 4 guests