>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:
>Dime gnx(10)
>For x = 1 to 10
>gnx(x)=mytable.dtdel(x)
>Next x
>
>Can someone help me with code that will work?
SCATTER has been suggested.
As an alternative, allow me to mention SCATTER NAME. This will create an object:
SCATTER NAME loRecord
Will create "object" loRecord, with properties like loRecord.Field1, etc.
This is not an array, but I find it more practical to transfer information. See also GATHER NAME.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)