Steven,
Like Yuri said, SCATTER may do what you want. It will put all fields in an array. If you are trying to grab only some of them, use the eval() function, see below:
>I have a table with fields named dtdel1, dtdel2, dtdel3, dtdel4 etc.
>
>I want to loop through these fields and create an arry of values.
>
>Example:
dimension gnx(10)
for x = 1 to 10
gnx(x) = eval("mytable.dtdel"+transform(x))
next x
>
>Can someone help me with code that will work?
Steve Gibson