I
I-F AB
Guest
Hi everyone,
I have a GUI which has a varying number of fields ( I've used
hiAddFields() & hiDeleteFields() ).
From the data I get, I can create a list of these fields or a list of
their values such as:
( LyrX1 HaloX1 LayTyp1 LyrX2 HaloX2 LayTyp2 LyrX3
HaloX3 LayTyp3 ) ;fieldname
( "met2" 0.3 "dmy" "diff" 0.5 "excl"
"via3" 0.8 "excl" ) ;value
This data is actually showing that for every 1 layer, it has 2 other
corresponding properties.
If it's just 1 property for 1 layer, I'd think of using disembodied
property lists.
Is there a way to store the data into something like below?
LStore(1) -> LyrX1 /*OR*/ LStore(1) -> Layer ;gives "met2"
LStore(3) -> HaloX3 /*OR*/ LStore(3) -> Halo ;gives 0.8
LStore(2) -> HaloX2 /*OR*/ LStore(2) -> Halo ;gives 0.5
I thought of splitting the field / fieldvalue list into lists with
segments of 3's but it seems inefficient.
Any suggestions?
Thanks.
Best regards,
I-FAB
I have a GUI which has a varying number of fields ( I've used
hiAddFields() & hiDeleteFields() ).
From the data I get, I can create a list of these fields or a list of
their values such as:
( LyrX1 HaloX1 LayTyp1 LyrX2 HaloX2 LayTyp2 LyrX3
HaloX3 LayTyp3 ) ;fieldname
( "met2" 0.3 "dmy" "diff" 0.5 "excl"
"via3" 0.8 "excl" ) ;value
This data is actually showing that for every 1 layer, it has 2 other
corresponding properties.
If it's just 1 property for 1 layer, I'd think of using disembodied
property lists.
Is there a way to store the data into something like below?
LStore(1) -> LyrX1 /*OR*/ LStore(1) -> Layer ;gives "met2"
LStore(3) -> HaloX3 /*OR*/ LStore(3) -> Halo ;gives 0.8
LStore(2) -> HaloX2 /*OR*/ LStore(2) -> Halo ;gives 0.5
I thought of splitting the field / fieldvalue list into lists with
segments of 3's but it seems inefficient.
Any suggestions?
Thanks.
Best regards,
I-FAB