Hi everybody,
I have a simple application that doesn't have a menu. It has a main program that runs a form. The close button of that form has thisform.release() and in the program we have do cleanup in several places where cleanup is a standalone program included into the project.
When I run my application in the development environment and click on the Close button, I'm getting a weird error variable g_projalias doesn't exist. I searched with GoFish and finally had to debug it before I found that this code comes from the VFP generated menu code.
Why is that and what should I do? Should I re-name my program into something like CleanupEnvironment or instead of do cleanup try to use cleanup() as a function?
Any suggestions?
Thanks in advance.
UPDATE. I changed do CleanUp into do CleanUp.prg and the problem went away. Is it an OK solution?
If it's not broken, fix it until it is.
My Blog