There is a pretty good picture in the Database Toolkit manual, on page 3-15. You'll need to simply pull out an array of variants, pull out the column you want, convert it to the data type you'll want, and then build an array buy enabling indexing on the edge of the for loop.