>
>No loop there. One pass.
Okay...I misread the original code...didn't realize he was only processing one header.
>Scan for ... has the same drawback + as it hits a record it should populate the variables first. Append from execution should be faster (especially if no indexes on target).
>
But SCAN can be Rushmore optimized, or an index order can be set, do a SEEK, and SCAN WHILE. Will APPEND FROM use the index from the source file?
>PS: If VFP8 you might even think of :
>
>insert into ... select ... from ...
>
Yep :)
Steve Gibson