Hi!
I have no much ideas about that, specially, why it is related to the form. However, fow of them:
1. Set _VFP.AutoYield to .T.
2. Try
BUILD EXE ("D:\MyProject.exe") FROM ("D:\MyProject")
>In Visual FoxPro 7, when I try to build a project which is defined for a COM server, if the following command is issued within a form:
>
>
>BUILD EXE D:\MyProject.exe FROM D:\MyProject
>
>
>I get:
>
>Function argument value, type, or count is invalid.
>
>It works ok from the command window. For non VFP COM server, it builds ok from a form. It's just on VFP COM server that I get this message.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.