I don't know of a better way...
In my case, I had added a file manually to cause my woes... I have seen certain cases where the project mgr seems to skip over files that should be included in the build with no explanation.
It seems to me your method should work fine. Maybe the project table was corrupted or something?
I do recall being told this section of code should be in your main program of the project. If it is buried somewhere else, maybe it could be mis-handled during build of the project in certain cases?
>By the way, do you remember how this little problem came about? In my case, it had to be the project manager screwing up, because I do not call the procedure in question anywhere in my code. I have a section in my main program that references the code inside an 'if 2=1 endif' section. The procedure is actually run in a datadriven manner and I put it inside of code that never actually runs so the project manager will pick it up. Somehow it confused 'Do form' with 'Do'. Hope this never happens again.
>
>Is there a better way of doing this? I have had the project crash and had to rebuild it. In that case, I do not want to have to remember all the parts that need to be added manually.
Thanks,
Stacy
Black Mountain Software, Inc.