Erel,
there is a bug in method Add of a List.... or I'm crazy.
This is an example .... m is a Map object, filled with some record from a table.
l_subcat is a List object
For Row = 0 To RowNumber - 1
Cursor1.Position = Row 'set the Cursor to each row
m.Put("id_cat_subcat", Cursor1.GetString("cat_subcat.id_cat_subcat") )
m.Put("desc_subcategoria", Cursor1.GetString("subcategorie.desc_subcategoria") )
l_subcat.Add(m)
Next
m change on every for cycle.
But ... the method Add seems to substitute (at every execution) all the item yet inserted ... with the last map object added. Is it possible?
I've noticed the problem adding a map object. It's a bug? Or I'm wrong something?
At the end of the Fro cycle, all the item in the List object are the same ...
there is a bug in method Add of a List.... or I'm crazy.
This is an example .... m is a Map object, filled with some record from a table.
l_subcat is a List object
For Row = 0 To RowNumber - 1
Cursor1.Position = Row 'set the Cursor to each row
m.Put("id_cat_subcat", Cursor1.GetString("cat_subcat.id_cat_subcat") )
m.Put("desc_subcategoria", Cursor1.GetString("subcategorie.desc_subcategoria") )
l_subcat.Add(m)
Next
m change on every for cycle.
But ... the method Add seems to substitute (at every execution) all the item yet inserted ... with the last map object added. Is it possible?
I've noticed the problem adding a map object. It's a bug? Or I'm wrong something?
At the end of the Fro cycle, all the item in the List object are the same ...