Hello Aparajita

In Active4D v6 you say: "Note: In v4.x collection keys were kept in 
alphabetical order, although officially no order was guaranteed. In v5 (I 
think, you mean v6) the keys are kept in no predictable order, so if you have 
code that relies on alphabetical keys, you will have to get the collection 
keys, sort them, and then use the sorted keys to access the collection items."

But then: 
for each(inCollection; outKey {; outValue})
is not making big sense. Because if i what to use 'for each' to write something 
to a webpage, I have no control in which order this will happen. In Active 4D 
v6 it is not the order of first created, first shown, it is not alphabetical.

In PHP when I do similar things, I can use associates arrays, and there I can 
control the Order.
In Active 4D it was great, to use collections as "better multidimensional 
Arrays",

for example

$c:=new collection

$c{"01"}:=new collection
$c{"01"}{"name"}:="Oliver"
$c{"01"}{"country"}:="switzerland"


$c{"02"}:=new collection
$c{"02"}{"name"}:=…


and then 

for each($c;$key;$cVal)

…



could you please, please,please, give us back, the ordered collections?

Or make it possible to order the collection?

or make it possible to use for each with a ordered option?


Regards, Oliver
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to