From: <ja...@er...> - 2004-03-08 18:39:45
|
Hi experts=2C it=27s a general database question and I am sure you have an answer=3A I have an array field (although it could be any kind of field) and I want to retrieve 1000 rows=2E There is something more efficient than this code=3A ArrayList =5Flist =3D new ArrayList()=3B while (=5Freader=2ERead()) = =7B =5Flist=2EAdd(=5Freader=2EGetInt32(1))=3B =7D =5Flist=2EToArray(typeof(float=5B=5D))=3B that will add 1000 values to an arraylist and after cast it to an float array=2E There is nothing more eficient=3F Thanks=2E Jesus ----------------------------------------------------------------------- Edici=F3n Limitada del nuevo disco de David Bisbal=3A Buler=EDa=2E Cons=ED= guelo con un 18=25 de decuento=2C solo por 15=2C50 =80 http=3A//www=2Eeresmas=2Ecom/banners/promo=2Ehtml=3Fzanox |