[Gambas-user] Slow GridVIew creation

mohareve at ...626... mohareve at ...626...
Wed Jan 28 19:13:29 CET 2009


This is an excerpt from my program:

visszhang = DBconX.Exec(quert)
FOR EACH visszhang
nev.Add(visszhang!"FName")
ut.Add(visszhang!"FPath")
nagy.Add(Round(visszhang!"FSize" / 1048576, -2))
mikor.Add(visszhang!"FChanged")
kotet.Add(point)
NEXT
dis = nev.Count 
gV.Rows.Count = dis
FOR i = 0 TO dis - 1
gV[i, 0].Text = nev[i] 
gV[i, 1].Text = kotet[i]
gV[i, 2].Text = ut[i]
gV[i, 3].Text = nagy[i]
gV[i, 4].Text = mikor[i]
NEXT

The problem is:
I'm handling a database, and during the querries I need to operate with tens of thousands of five-columned rows. It is desperately slow creation. Is it possible to change the algorithm and make it faster?
Currently I'm filling the rows from 5 previously created arrays. I need some help, thanks!




More information about the User mailing list