>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?
I would alter my function/prg name. I run into to much hickups with such stuff on years later where I could'nt remember and run into the same trap again.
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]