Mixing Arrays and Structures


i may mistaken, can make arrays work when assigned discrete numbers (e.g. 1,2,3) , structures defined label (e.g. key1, key2, key3).

if assessment correct make “array” of “structures” can’t seem right either.

here point/objective – have list of items have descriptors. ergo, loop though list using discrete numbers on final “level” can use meaningful labels.

example:

list.1.title
list.1.size
list.1.other
list.2.title
list.2.size
list.2.other

maybe isn't possible, there viable alternative?

quote:

originally posted by: riluve
i may mistaken, can make arrays work when assigned discrete numbers (e.g. 1,2,3) , structures defined label (e.g. key1, key2, key3).
if assessment correct make “array” of “structures” can’t seem right either.
here point/objective – have list of items have descriptors. ergo, loop though list using discrete numbers on final “level” can use meaningful labels.
example:
list.1.title
list.1.size
list.1.other
list.2.title
list.2.size
list.2.other
maybe isn't possible, there viable alternative?

list=arraynew();
list[1]=structnew();
etc

by way, naming array "list" confuse people, me example.


More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support