>About thirty years ago I was doing something such as this with DOS Basic.
>Can it be done in VFP or is a vfp array recommended?
>Or am I just old and I forgot?
>
>
>For RecordCount = 1 To TheEndOfTheFile
>Goto RecordCount
>NumericValue = Datafile.n1
>nFOO(RecordCount) = NumericValue
>Next RecordCount
>
Yes, it's legal now. You have to be 13 or older and a citizen. Void where prohibited.
But it's as efficient as mowing with nail clippers and raking with a toothbrush.
select n1 from datafile into array nFoo
would fit the bill nicely.
update: and your code would also visit any deleted records and have them in the array, regardless of Set("Deleted"). GoTo ignores filters as well (but then so does SQL).