Hi everybody
I have a doubt
I have a Mysql Select with Tdolphin which contains a number of rows. Sometimes as many as 15000 rows, I have to transform it to an array to do some operations on the data.
Rigth now I'm doing this.
Local xArr:={}
Local xDb:=tDolphinQry():New("select f1, f2, f3 from xTable", oSvr)
Local x:=0
For x=1 to xDb:nRecCount
xDb:getRow()
Aadd(xArr,{f1,f2,f3,1,.F.})
xDb:Skip()
Next
How do I change it to FOR...EACH, It's been quite fast for working with arrays, but I can't make it work with Tdolphin's select, I'm adding some values to the array, so I can't use xDb:FillArray()
Thanks in advance.
From Chile
Adolfo