[Gambas-user] automatic get key from resultsets in collection

2017-03-14 Thread PICCORO McKAY Lenz
how can i made? i wish to handle the resultsets like php does: foreach ($resultobjusuario as $column => $row) $arraydata[$column] = $row; this made me a map (like collections in gambas) where the index key its the column table name, and the value its the column currentl f

Re: [Gambas-user] automatic get key from resultsets in collection

2017-03-14 Thread Tobias Boege
On Tue, 14 Mar 2017, PICCORO McKAY Lenz wrote: > how can i made? > > i wish to handle the resultsets like php does: > > foreach ($resultobjusuario as $column => $row) > $arraydata[$column] = $row; > > this made me a map (like collections in gambas) where the index key its

Re: [Gambas-user] automatic get key from resultsets in collection

2017-03-14 Thread PICCORO McKAY Lenz
2017-03-14 15:25 GMT-04:00 Tobias Boege : > column name. Testing this with an sqlite3 database, I got column names like > "id, name" when I did a "SELECT *" but I got "table.id, table.name" when I > i confirmed.. so i made a little modification: cMap[hField.Name] = hRes[ Replace( hField.Name, T