Groups | Blog | Home
all groups > vb.net data > february 2004 >

vb.net data : SQL 2k and Arrays



haynesc NO[at]SPAM bf.noacsc.org
2/25/2004 6:38:30 AM
I have a question about SQL 2000 - can I use data from a SQL database
to fill an array and if so, what would I use to fill the array? Some
Gerry O'Brien [MVP]
2/27/2004 12:19:17 PM
You would need to retrieve the records into a dataset and then populate the
array.

One of the most popular methods is to create an array of objects. The
objects should contain property values to represent the fields in the
records from the database.

Once you return a dataset, you can then iterate through the dataset and plug
the values from each record into the array properties for each object.

Code sample can be provide if needed.

--
Gerry O'Brien
Visual Developer .NET MVP



[quoted text, click to view]

AddThis Social Bookmark Button