[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looping through an array with FOR EACH
[Thread Prev] | [Thread Next]
- Subject: Re: Looping through an array with FOR EACH
- From: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Sun, 18 Jan 2026 00:03:05 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Il 17/01/26 17:45, Manu ha scritto:
helloOrder in associative array, i.e. collection, is relative. So collection[].sort is relative.a/ order by reference, i.e. key b/ order by value, but it depends which data type is used. c/ order by recording, is just cosmetic, but not really useful.A good execise, import a CSV file (coma separate value) and convert to collection[]You notice how to import ( Excell, Libreoffice, ..., wants to know ! ). It expects a formula, a schema to import.One line is a collection. One data is a cell of column. One column expects a datatype.Imagine gridview with only collection[] Now, SQL is forbidden.Now , you must sort your collection[] using i.e. this column, after this other column, this ...Try to find the best way to sort. And finally, write a recursive function if you can. Complete Gridview to sort anything.
Hi Manu,When I was studying the DB class, I read several of your posts on the French forum, which helped me.
I'd like to take this opportunity to thank you. I also thank you for your suggestions and the code you provided.I admit that I've only used collections to import data from csv files and I know very little about them. I'll try to do what you suggest, but if I had to do what your code suggests, I'd use a class and the _compare() function.
Best regards Gianluigi