>>It'd make more sense to use macro expansion or scripting to drive the operation IMO.
>
>Macro Expansion and Scripting - both are new concepts to me. Where can i read up on these two concepts? Thanks again Ed.
Macro expansion has been part of the language. It's the ability to put a piece of code, whether a command, a phrase, an argument, and have it evaluated and executed at runtime. For example:
cRunMe = 'REPLACE Foo WITH "bar"'
&cRunMe
Scripting - the ability to create and execute code blocks at runtime and execute them dynamically - is a new feature of VFP 7.
In both cases, see the OnLine documentation for your version of VFP...