Hi Steve,
The BUILD command is not supported at runtime no-way, no-how. Command Window only. If you have a PRG that you need to run on the fly, take a look at VFP7's EXECSCRIPT() function. You can use that with FILETOSTR() to grab a PRG into a Character memvar and then run it.
>I seem to get the error -
>Feature is not available.
>
>whether I put the BUILD EXE command inside of a .PRG program and run it from another .PRG program or run it from a form that has a command button on it that runs the same .PRG program that has BUILD EXE in it.
>
>Where can I locate my BUILD EXE command where I won't get this error? I do a BUILD EXE after I update several .SCX form files that belong to a .PJX project.
>
>Thanks again. I know I asked a similar question last week, but the problem then was about updating a .EXE when other users are using it, but I have remedied that problem.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05