[Gambas-user] collection of collection problem

PICCORO McKAY Lenz mckaygerhard at ...626...
Tue Mar 21 23:06:54 CET 2017


2017-03-21 11:24 GMT-04:00 Charlie <charlie at ...2793...>:
> Can you simplify the code so we can run it or upload the program.

lets get simple:

i want a registri "order" that have many "products" so :

object (1 element with many attrs)

and one of those attrs, its the cod_contenido , of the products of the order

attr:cod_contenido-> (object with many elements, and each element many
atrrs)

In java, theres DAO objects, but with collections, and in php more easy,
only an array in array!

i mean:

|-----------------------------|
|   ORD101                    |
|-----------------------------|
| cod_orde:101                |
| des_order:description bla bl|----------------------------|
| cod_contents:1011           |        CON1011             |
|-----------------------------|----------------------------|
                              |    cod_product:101,        |
                              |    cod_order:101,          |
                              |    can_product:2           |
                              |----------------------------|
                              |    cod_product:102         |
                              |    cod_order:101           |
                              |    can_product:12          |
                              |----------------------------|



More information about the User mailing list